Ryan Skraba created AVRO-2622:
---------------------------------
Summary: C++ decimal logical type doesn't use default scale
Key: AVRO-2622
URL: https://issues.apache.org/jira/browse/AVRO-2622
Project: Apache Avro
Issue Type: Bug
Components: c++
Affects Versions: 1.9.1
Reporter: Ryan Skraba
In C++, the following schema doesn't apply the decimal logical type:
{code}
{"type":"bytes","logicalType":"decimal","precision":12}
{code}
[According to the spec|https://avro.apache.org/docs/current/spec.html#Decimal],
the scale is optional and defaults to zero. The above should be equivalent to:
{code}
{"type":"bytes","logicalType":"decimal","precision":12,"scale":0}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)