gszadovszky opened a new issue, #3316:
URL: https://github.com/apache/parquet-java/issues/3316

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The class `VariantBuilder` checks not only the precision of the related 
value but the scale as well to decide on the representation type 
([DECIMAL4](https://github.com/apache/parquet-java/blob/apache-parquet-1.16.0/parquet-variant/src/main/java/org/apache/parquet/variant/VariantBuilder.java#L230)
 or 
[DECIMAL8](https://github.com/apache/parquet-java/blob/apache-parquet-1.16.0/parquet-variant/src/main/java/org/apache/parquet/variant/VariantBuilder.java#L237)).
 This is not correct (according to the 
[specification](https://github.com/apache/parquet-format/blob/apache-parquet-format-2.12.0/VariantEncoding.md#encoding-types))
 since any variant decimal type can have the same range of `[0, 38]` scale.
   
   ### Component(s)
   
   _No response_


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