tarun-google opened a new pull request, #41920:
URL: https://github.com/apache/beam/pull/41920

   Beam has no way to represent Variant (semi-structured) data, so it can't 
exchange Variant values with Iceberg v3, Spark or Flink. This first PR adds a 
read-only Java value class for the Parquet Variant v1 binary encoding; schema 
integration and JSON support follow in separate PRs.
   
   Design doc: 
https://docs.google.com/document/d/1m9EQEbGbx6tDEBD7ZTGllYQyHkwY8ACSjfOTTNUVwAk/edit
   
   Changes:
   - Add read-only Variant class that wraps Parquet Variant metadata and value 
bytes without copying
   - Add typed getters for every primitive type, plus object and array 
navigation
   - Add logical equals and hashCode following the spec's equivalence classes
   - Add tests for all apache/parquet-testing Variant vectors, large objects 
and malformed input
   
   Tested:
   $ ./gradlew :sdks:java:core:test --tests 
'org.apache.beam.sdk.schemas.variant.*' \
       :sdks:java:core:checkstyleMain :sdks:java:core:checkstyleTest 
:sdks:java:core:spotbugsMain
   BUILD SUCCESSFUL in 8m 42s
   VariantTest: tests=11, failures=0, errors=0, skipped=0
   
   <!--
   
   Thank you for your contribution! Follow this checklist to help us 
incorporate your contribution quickly and easily:
   
    - [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
    - [ ] Replace these instructions with a description of your change and why 
you have made it.
    - [ ] Mention the appropriate issue in your description (for example: 
`addresses #123` or `fixes #456`).
    - [ ] Update `CHANGES.md` with noteworthy changes.
   
   See [CONTRIBUTING.md]() for more details.
   
   -->
   


-- 
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]

Reply via email to