You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aditya Kishore (JIRA)" <ji...@apache.org> on 2015/03/25 22:57:52 UTC

[jira] [Commented] (DRILL-2567) CONVERT_FROM in where clause - Error.

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

Aditya Kishore commented on DRILL-2567:
---------------------------------------

The issue is that Unpooled.wrappedBuffer() sets the writeIndex == capacity. This must be rewound to 0 before writing the data into it.

> CONVERT_FROM in where clause - Error.
> -------------------------------------
>
>                 Key: DRILL-2567
>                 URL: https://issues.apache.org/jira/browse/DRILL-2567
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 0.8.0
>         Environment: MapR Sandbox 4.0.2
>            Reporter: Sudhakar Thota
>            Assignee: Daniel Barclay (Drill)
>         Attachments: drill.log
>
>
> CONVERT_FROM used in predicate results in error like mentioned under. The drill log file with error is attached.
> 0: jdbc:drill:> select CONVERT_FROM(t.row_key, 'INT') rk from maprdb.myLittleHBaseTable t where CONVERT_FROM(t.row_key, 'INT')=1001 limit 1;
> Query failed: IndexOutOfBoundsException: writerIndex(4) + minWritableBytes(4) exceeds maxCapacity(4): UnpooledHeapByteBuf(ridx: 0, widx: 4, cap: 4/4)
> Error: exception while executing query: Failure while executing query. (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)