Skip to content
New issue

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

Parquet: Implement Variant readers #12139

Merged
merged 12 commits into from
Feb 18, 2025
Prev Previous commit
Next Next commit
Apply spotless.
  • Loading branch information
rdblue committed Feb 18, 2025
commit 927808aaa7a08a6ec09018119360ee929df082c0
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ public void testShreddedObjectWithOptionalFieldStructs() throws IOException {
GenericRecord recordA = record(fieldA, Map.of("value", serialize(Variants.of(34))));
GenericRecord recordB = record(fieldB, Map.of("typed_value", "iceberg"));
GenericRecord recordC = record(fieldC, Map.of()); // c.value and c.typed_value are missing
GenericRecord fields = record(objectFields, Map.of("a", recordA, "b", recordB, "c", recordC)); // d is missing
GenericRecord fields =
record(objectFields, Map.of("a", recordA, "b", recordB, "c", recordC)); // d is missing
GenericRecord variant =
record(variantType, Map.of("metadata", TEST_METADATA_BUFFER, "typed_value", fields));
GenericRecord record = record(parquetSchema, Map.of("id", 1, "var", variant));
Expand Down