[
https://issues.apache.org/jira/browse/AVRO-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-1860:
-------------------------------
Resolution: Fixed
Fix Version/s: 1.8.2
1.9.0
Status: Resolved (was: Patch Available)
I committed this. Thanks, Gabor!
> 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
> Fix For: 1.9.0, 1.8.2
>
>
> 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)