You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by Daniel Barclay <db...@maprtech.com> on 2015/06/27 00:33:06 UTC

Why BatchSchema.getColumn(int) accepts out-of-range index values?

Why does Why BatchSchema.getColumn(int index) accept out-of-range values of
index?

Thanks,
Daniel
-- 
Daniel Barclay
MapR Technologies

Re: Why BatchSchema.getColumn(int) accepts out-of-range index values?

Posted by Steven Phillips <sp...@maprtech.com>.
I don't think there is a good reason. I think we should throw an exception
if out of range. In the few places that method is used, it seems the
expectation that the method will always return a non-null value.

On Fri, Jun 26, 2015 at 3:33 PM, Daniel Barclay <db...@maprtech.com>
wrote:

> Why does Why BatchSchema.getColumn(int index) accept out-of-range values of
> index?
>
> Thanks,
> Daniel
> --
> Daniel Barclay
> MapR Technologies
>



-- 
 Steven Phillips
 Software Engineer

 mapr.com