Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Partial deserialization with schemas of different names

$
0
0
Hey folks,

How do we handle cases where the reader and writer record schemas have
different record names but their fields are in a is-a relationship with
slight differences in their fields.

For example:

"type": "record",
"name": "RecordA",
"fields": [
{"name": "a", "type": "string"},
{"name": "b", "type": ["null", "long"]},
{"name": "c", "type": {"type": "array", "items": "string"}}

"type": "record",
"name": "RecordB",
"fields": [
{"name": "a", "type": "string"}

In the above case, what's the best way to use RecordB for reading what was
written using RecordA?

Viewing all articles
Browse latest Browse all 5648

Trending Articles