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:57:24 GMT
Also, when compiling your schemas with the Maven plugin and <stringType>
not specified, CharSequences are created, not Strings.


On Sun, Mar 27, 2016 at 5:19 PM Matt Narrell <matt.narrell@gmail.com> wrote:

> So, unless I'm missing something. this:
>
> avro {
>     stringType = "string"
> }
>
> In your build.gradle file is equivalent to <stringType>String</stringType
> in Maven, which I cannot use.  Am I totally off here?
>
> mn
>
> On Fri, Mar 25, 2016 at 4:48 PM Ryon Day <ryon_day@yahoo.com> wrote:
>
>>
>> My sample project might help. I went through the same thing you did.
>>
>> https://github.com/ryonday/avroDecodingHelp
>>
>> Ryon
>>
>> On 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?
>>
>>

Mime
View raw message