You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Skraba (Jira)" <ji...@apache.org> on 2019/11/08 09:49:00 UTC

[jira] [Created] (AVRO-2622) C++ decimal logical type doesn't use default scale

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)