Gray created AVRO-2401:
--------------------------
Summary: Initializing decimal fields with fixed fields can cause
padding issues in Java
Key: AVRO-2401
URL: https://issues.apache.org/jira/browse/AVRO-2401
Project: Apache Avro
Issue Type: Bug
Components: java
Reporter: Gray
Attachments: DecimalConverterTest.java
I'm having a hard time figuring out if this a a bug or expected behavior. If
we initialize a decimal field with a fixed logical type that has fewer bytes
then the fixed size has, then the bytes get padded on the right with 0s. This
changes their resulting decimal value. I think they should be padded from the
left. The spec is vague here so I'm not sure if this is a bug or just
unexpected outcome.
I'll attach my junit test. The result of the test is: AssertionError:
expected:<660.51> but was:<169090.56>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)