[ 
https://issues.apache.org/jira/browse/DRILL-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13759866#comment-13759866
 ] 

Jacques Nadeau commented on DRILL-216:
--------------------------------------

This is actually two problems.

The reason you're having the out of bounds error is we're overrunning our 
target buffer when copying in SVRemover.  I've done a quick fix for this in 
changeset 56d2cb9.  The hack fix is to preallocate more.  We need to update all 
the operators to use setSafe and copyFromSafe so we don't have this problem.  
We can do that for a future milestone release.

The second problem, ordering by a _MAP isn't currently, should be addressed 
with a new exception.  Working on that now.
                
> Exception returns when trying to do order by on map reference
> -------------------------------------------------------------
>
>                 Key: DRILL-216
>                 URL: https://issues.apache.org/jira/browse/DRILL-216
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Timothy Chen
>            Priority: Minor
>
> Exception running 
> select * from "sample-data/region.parquet" order by 1 ; 
> error_type: 0
> message: "Failure while running fragment. < IndexOutOfBoundsException:[ 
> dstIndex: 222 ]"
> ]
>        at 
> org.apache.drill.sql.client.full.ResultEnumerator.moveNext(ResultEnumerator.java:44)
>        at 
> net.hydromatic.optiq.runtime.ArrayEnumeratorCursor.next(ArrayEnumeratorCursor.java:44)
> It should return a error message saying order by map reference is not 
> supported instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to