akshayjain3450 opened a new issue, #7420:
URL: https://github.com/apache/iceberg/issues/7420

   ### Apache Iceberg version
   
   1.2.1 (latest release)
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   Precision and Scale are two important things when declaring a Decimal. 
Iceberg currently allows a user to create a Decimal Type with 0 precision. 
Also, you can create decimals with scale more than precision.
   
   Precision is defined as the number of digits in a Decimal number.
   Scale is the number of digits right to the decimal point in a Decimal number.
   
   The conditions for precision and scale are inconsistent with the 
Mathematical law, and once the user creates such Decimals and the schema is 
parsed using any other Utility like Avro, they reject this schema allowed by 
Iceberg.
   
   For eg.
   A Decimal Number: 12345.67 has a precision of 7 and a scale of 2.
   If you try to think of a number with a precision of 2 and a scale of 7, then 
it does not exist.
   
   


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