alamb commented on code in PR #574:
URL: https://github.com/apache/parquet-format/pull/574#discussion_r3363303265


##########
VariantEncoding.md:
##########
@@ -87,6 +87,7 @@ The `version` is a 4-bit value that must always contain the 
value `1`.
 `sorted_strings` is a 1-bit value indicating whether dictionary strings are 
sorted and unique.
 `offset_size_minus_one` is a 2-bit value providing the number of bytes per 
dictionary size and offset field.
 The actual number of bytes, `offset_size`, is `offset_size_minus_one + 1`.
+Bit 5 (marked `R`) is reserved; it must be set to 0 by writers and ignored by 
readers.

Review Comment:
   > You are right that this was not previously specified. However, I think 
mandating "must be set to 0 by writers" is the standard practice for reserved 
bits in binary specs — it ensures forward compatibility so that a future 
version can assign meaning to these bits without having to worry about random 
garbage from older writers. Without this constraint, a future revision would 
need a version bump even for a trivially additive change.
   
   
   I agree mandating / specifing to be "0" is a good idea, but it would 
technically change the spec
   Any change, however, minor, I think needs to be discussed ( and probably 
voted on) in the mailing list before we make a change
   
   



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