cashmand opened a new pull request, #3212:
URL: https://github.com/apache/parquet-java/pull/3212

   ### Rationale for this change
   
   Provide a reference implementation for reading Variant values from Parquet 
based on the Variant shredding spec in 
https://github.com/apache/parquet-format/blob/master/VariantShredding.md.
   
   ### What changes are included in this PR?
   
   Adds VariantConverter classes to convert shredded Variant values in Parquet 
into a single metadata/value pair, representing the full value.
   
   The PR also adds support in parquet-avro for using this interface: when a 
parquet schema element is annotated with the Variant logical type, the Avro 
reader will produce a record containing only the reconstructed metadata/value 
pair, rather than the full shredded result.
   
   ### Are these changes tested?
   
   Added unit tests, mostly based on similar tests in 
https://github.com/apache/iceberg/blob/main/parquet/src/test/java/org/apache/iceberg/parquet/TestVariantReaders.java.
   
   ### Are there any user-facing changes?
   
   Connectors can now read Variant values, and the parquet-avro connector will 
infer a Variant schema if the logical type annotation is present.
   
   Closes #3211
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to