We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AvroWriteSupport
TwoLevelListWriter
ThreeLevelListWriter
parquet.avro.data.supplier
ReadSupport
The text was updated successfully, but these errors were encountered:
Turns out the new 3 level list is more complex.
With the default 2 level list, myField: List[T] is written as:
myField: List[T]
required group myField (LIST) { repeated T array; }
But the Avro counter part is still "name": "myField", "type": "array", "items": T
"name": "myField", "type": "array", "items": T
While with 3 level list, the Parquet schema becomes:
required group myField (LIST) { repeated group list { required T element; } }
And the Avro record becomes [{"element": t1}, {"element": t1}]...
[{"element": t1}, {"element": t1}]
WIP in https://github.com/spotify/magnolify/tree/neville/pq-avro
Sorry, something went wrong.
More on Avro array mapping. The following Avro fields
array
{"name": "field1", "type:" {"type": "array", "items": "string"}, "default": [] } // required array field that defaults to empty array {"name": "field2", "type:" ["null", {"type": "array", "items": "string"}], "default": null } // nullable array field that defaults to null
{"name": "field1", "type:" {"type": "array", "items": "string"}, "default": [] } // required array field that defaults to empty array
{"name": "field2", "type:" ["null", {"type": "array", "items": "string"}], "default": null } // nullable array field that defaults to null
map to:
required group field1 (LIST) { repeated binary array (STRING); } optional group field2 (LIST) { repeated binary array (STRING); }
No branches or pull requests
AvroWriteSupport
- oldTwoLevelListWriter
vs newThreeLevelListWriter
parquet.avro.data.supplier
with generic records in test improve Parquet-Avro compatiblity #278ReadSupport
2aea4e8The text was updated successfully, but these errors were encountered: