drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Rudis <...@rud.is>
Subject Re: UDF java.lang.IndexOutOfBoundsException
Date Mon, 11 Sep 2017 14:36:32 GMT
argh.

    buffer = out.buffer = buffer.reallocIfNeeded(outputSize);

found it in the STAsText.java example.

apologies for dev spam.

-boB

On Mon, Sep 11, 2017 at 10:32 AM, Bob Rudis <bob@rud.is> wrote:
> I'm working on a base64 encoding / decoding UDFs for Drill and
> building off of other, simple UDFs I've written before. If the byte
> array is larger than 256 I get:
>
>     java.lang.IndexOutOfBoundsException: index: 0, length: ####
> (expected: range(0, 256))
>
> regardless of which @Output holder I've tried.
>
> I did a quick grep on github to no avail and am curious as to what I'm
> doing wrong. And, I'm likely overlooking something.
>
> Also: is there a better searchable interface to the mailing list
> archives than adding
> "site:mail-archives.apache.org/mod_mbox/drill-dev/" to a google
> search?
>
> thx,
>
> -Bob

Mime
View raw message