avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1126) Upgrade to Jackson 2+
Date Tue, 08 Oct 2013 18:32:43 GMT

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

Doug Cutting commented on AVRO-1126:
------------------------------------

> I would like to consider that in our API we don't use any JSON default values at all
[ ... ]

This might combine two things that are currently orthogonal (schema representation & data
representation).  My instinct is to keep schemas independent of data representations.  A given
JSON default value may have different representations in different data representations (generic,
specific, reflect, protobuf, thrift, etc.). These are connected through the Json encoding.
 A json default value can be converted to a particular data representation by decoding with
a JsonDecoder and a DatumReader for the desired data representation.

Would you have this conversion done at Schema read time rather than at default-value access
time, so that the same schema is represented differently for generic, specific & reflect?
 Or do you have something else in mind?

> Upgrade to Jackson 2+
> ---------------------
>
>                 Key: AVRO-1126
>                 URL: https://issues.apache.org/jira/browse/AVRO-1126
>             Project: Avro
>          Issue Type: Task
>          Components: java
>            Reporter: James Tyrrell
>            Priority: Critical
>             Fix For: 1.8.0
>
>
> Quite annoyingly with Jackson 2+ the base package name has changed from org.codehaus.jackson
to com.fasterxml.jackson so in addition to changing the dependencies from:
> {code:xml} 
> <dependency>
>     <groupId>org.codehaus.jackson</groupId>
>     <artifactId>jackson-core-asl</artifactId>
>     <version>${jackson.version}</version>
> </dependency>
> <dependency>
>     <groupId>org.codehaus.jackson</groupId>
>     <artifactId>jackson-mapper-asl</artifactId>
>     <version>${jackson.version}</version>
> </dependency>
> {code} 
> to:
> {code:xml} 
> <dependency>
>     <groupId>com.fasterxml.jackson.core</groupId>
>     <artifactId>jackson-core</artifactId>
>     <version>${jackson.version}</version>
> </dependency>
> <dependency>
>     <groupId>com.fasterxml.jackson.core</groupId>
>     <artifactId>jackson-databind</artifactId>
>     <version>${jackson.version}</version>
> </dependency>
> {code} 
> the base package in the code needs to be updated. More info can be found [here|http://wiki.fasterxml.com/JacksonUpgradeFrom19To20],
I am happy to do the work just let me know what is preferable i.e. should I just attach a
patch to this issue?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message