avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1860) DefaultValue() returns Ints for Long fields
Date Thu, 06 Oct 2016 21:49:20 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15553286#comment-15553286
] 

ASF subversion and git services commented on AVRO-1860:
-------------------------------------------------------

Commit ef0e1a1a011298ee77f1112ec9709ef03c5035ab in avro's branch refs/heads/master from [~cutting]
[ https://git-wip-us.apache.org/repos/asf?p=avro.git;h=ef0e1a1 ]

AVRO-1860: Java: Field#DefaultVal() returns Ints for Long fields.  Contributed by Gabor Szadovszky.


> DefaultValue() returns Ints for Long fields
> -------------------------------------------
>
>                 Key: AVRO-1860
>                 URL: https://issues.apache.org/jira/browse/AVRO-1860
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.8.1
>            Reporter: Manuel Rieke
>            Assignee: Gabor Szadovszky
>
> 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)

Mime
View raw message