You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Manuel Rieke (JIRA)" <ji...@apache.org> on 2016/06/06 12:41:21 UTC

[jira] [Created] (AVRO-1860) DefaultValue() returns Ints for Long fields

Manuel Rieke created AVRO-1860:
----------------------------------

             Summary: DefaultValue() returns Ints for Long fields
                 Key: AVRO-1860
                 URL: https://issues.apache.org/jira/browse/AVRO-1860
             Project: Avro
          Issue Type: Bug
    Affects Versions: 1.8.1
            Reporter: Manuel Rieke


I am iterating over the schemas for getting default values for fields. When the type of a field is Long Avro returns INT instead:
field.defaultVal()
-->Field.defaultVal()
-->Jacksonutils.toObject(jsonNode)
-->Jacksonutils.toObject(jsonNode, null)

The Field class already contains the information ("long"), so shouldn't the Field class use Jacksonutils-toObject-Method with schema? Otherwise it is always null and Integer are returned.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)