scovich commented on code in PR #520:
URL: https://github.com/apache/parquet-format/pull/520#discussion_r2300796183


##########
VariantShredding.md:
##########
@@ -192,31 +202,31 @@ optional group event (VARIANT) {
 
 The group for each named field must use repetition level `required`.
 
-A field's `value` and `typed_value` are set to null (missing) to indicate that 
the field does not exist in the variant.
-To encode a field that is present with a null value, the `value` must contain 
a Variant null: basic type 0 (primitive) and physical type 0 (null).
+A field's `value` and `typed_value` are both missing to indicate that the 
field does not exist in the variant.
+To encode a field that is present with a SQL NULL value, the `value` must 
contain a Variant null: basic type 0 (primitive) and physical type 0 (null).
 
-When both `value` and `typed_value` for a field are non-null, engines should 
fail.
+When both `value` and `typed_value` for a field are present, engines should 
fail.

Review Comment:
   Similar to your comment on array elements... isn't it legal for both to be 
present if the object field is itself a partially shredded sub-object?
   
   I wonder if the spec is trying to say that it's illegal for `value` (a 
variant object) and `typed_value` (a struct) to both mention the same field... 
but that was already clearly stated at L181-183 above?



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