avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Narrell <matt.narr...@gmail.com>
Subject Re: avro.java.string
Date Sun, 27 Mar 2016 23:48:10 GMT
Sure.

https://github.com/mnarrell/avro-string-hell

On Fri, Mar 25, 2016 at 8:09 PM Sean Busbey <busbey@cloudera.com> wrote:

> could you make a small maven project that reproduces the issue?
>
> On Fri, Mar 25, 2016 at 5:24 PM, Matt Narrell <matt.narrell@gmail.com>
> wrote:
>
>> Avro and avro-maven-plugin 1.7.7
>>
>> No matter what I do, I'm unable to get this feature to work.  I've
>> exhausted my Google skills and continue to be unsuccessful.  I'm looking
>> here:
>>
>>
>> http://stackoverflow.com/questions/25118727/how-to-generate-fields-of-type-string-instead-of-charsequence-using-avro
>> https://issues.apache.org/jira/browse/AVRO-803
>>
>> I have a simple field in my schema like this:
>>
>> {
>>     "name": "simple",
>>     "type": {
>>         "type": "string",
>>         "avro.java.string": "String"
>>     }
>> }
>>
>> However, this consistently yields:
>> @Deprecated public java.lang.CharSequence simple;
>>
>> I'm not able to use the <stringType> configuration of the plugin as this
>> project holds all of the Avro schemas for our organization, and cannot
>> suffer a change that wide.
>>
>> Am I missing something obvious?
>>
>
>
>
> --
> busbey
>

Mime
View raw message