[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-user
Subject: Re: Map Reduce Jobs bound to "String" StringType
From: Johannes Schulte <johannes.schulte () gmail ! com>
Date: 2013-08-13 20:31:45
Message-ID: CAKBEjTt9D9fi7gOwLX4qMJX5L-qd6J8cvNncg_3z8dLnLJt-Og () mail ! gmail ! com
[Download RAW message or body]
Doug, thanks for the response after such a long time. We're looking forward
to 1.7.5 and this feature.
On Tue, Aug 13, 2013 at 7:28 PM, Doug Cutting <cutting@apache.org> wrote:
> This is fixed in AVRO-1353 and will be in (soon to be released) 1.7.5.
>
> https://issues.apache.org/jira/browse/AVRO-1353
>
> Doug
>
> On Mon, Jun 3, 2013 at 9:18 AM, Johannes Schulte
> <johannes.schulte@gmail.com> wrote:
> > Hi,
> >
> > am I right with saying: When using the Map Reduce new API, there are
> always
> > Java Strings created for avro string types?
> >
> > I know about the "avro.string.type" property but even when leaving this
> > untouched, I get Strings.
> >
> > In AvroRecordReaderBase there is a ReflectDatumReader instantiated
> >
> > mAvroFileReader = createAvroFileReader(seekableFileInput,
> >
> > new ReflectDatumReader<T>(mReaderSchema));
> >
> >
> > and in this this method is always called:
> >
> >
> > @Override
> >
> > protected Object readString(Object old, Decoder in) throws IOException
> {
> >
> > return super.readString(null, in).toString();
> >
> > }
> >
> >
> > Is there a way to circumvent this and keep using Utf8?
> >
> >
> > Cheers,
> >
> >
> > Johannnes
> >
> >
> >
>
[Attachment #3 (text/html)]
<div dir="ltr">Doug, thanks for the response after such a long time. We're \
looking forward to 1.7.5 and this feature.</div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Tue, Aug 13, 2013 at 7:28 PM, Doug Cutting <span \
dir="ltr"><<a href="mailto:cutting@apache.org" \
target="_blank">cutting@apache.org</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">This is fixed in AVRO-1353 and will be in (soon to be \
released) 1.7.5.<br> <br>
<a href="https://issues.apache.org/jira/browse/AVRO-1353" \
target="_blank">https://issues.apache.org/jira/browse/AVRO-1353</a><br> <span \
class="HOEnZb"><font color="#888888"><br> Doug<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Jun 3, 2013 at 9:18 AM, Johannes Schulte<br>
<<a href="mailto:johannes.schulte@gmail.com">johannes.schulte@gmail.com</a>> \
wrote:<br> > Hi,<br>
><br>
> am I right with saying: When using the Map Reduce new API, there are always<br>
> Java Strings created for avro string types?<br>
><br>
> I know about the "avro.string.type" property but even when leaving \
this<br> > untouched, I get Strings.<br>
><br>
> In AvroRecordReaderBase there is a ReflectDatumReader instantiated<br>
><br>
> mAvroFileReader = createAvroFileReader(seekableFileInput,<br>
><br>
> new ReflectDatumReader<T>(mReaderSchema));<br>
><br>
><br>
> and in this this method is always called:<br>
><br>
><br>
> @Override<br>
><br>
> protected Object readString(Object old, Decoder in) throws IOException {<br>
><br>
> return super.readString(null, in).toString();<br>
><br>
> }<br>
><br>
><br>
> Is there a way to circumvent this and keep using Utf8?<br>
><br>
><br>
> Cheers,<br>
><br>
><br>
> Johannnes<br>
><br>
><br>
><br>
</div></div></blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic