HuaHuaY opened a new pull request, #591:
URL: https://github.com/apache/parquet-format/pull/591

   ### Rationale for this change
   
   Allow VARIANT value to be omitted.
   
   There are some cases in `parquet-testing` 
https://github.com/apache/parquet-testing/tree/master/shredded_variant which 
don't have `value` field. 
   
   ```sh
   # Doesn't have top value field.
   parquet-testing/shredded_variant on  master 
   ❯ ~/arrow/cpp/out/build/ninja-debug/debug/parquet-dump-schema 
case-131.parquet 
   required group field_id=-1 table {
     required int32 field_id=1 id;
     required group field_id=2 var (Variant(1)) {
       required binary field_id=-1 metadata;
       optional int32 field_id=-1 typed_value;
     }
   }
   
   # Doesn't have inner value field.
   parquet-testing/shredded_variant on  master 
   ❯ ~/arrow/cpp/out/build/ninja-debug/debug/parquet-dump-schema 
case-132.parquet
   required group field_id=-1 table {
     required int32 field_id=1 id;
     optional group field_id=2 var (Variant(1)) {
       required binary field_id=-1 metadata;
       optional binary field_id=-1 value;
       optional group field_id=-1 typed_value {
         required group field_id=-1 a {
           optional int32 field_id=-1 typed_value;
         }
         required group field_id=-1 b {
           optional binary field_id=-1 typed_value (String);
         }
       }
     }
   }
   ```
   
   ### What changes are included in this PR?
   
   Updated the descriptions in the variant-related Markdown files.
   
   ### Do these changes have PoC implementations?
   
   No.
   


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