You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Pavan Lanka (Jira)" <ji...@apache.org> on 2023/04/25 00:31:00 UTC

[jira] [Commented] (ORC-1413) ORC row level filter throws Exception

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

Pavan Lanka commented on ORC-1413:
----------------------------------

[~zratkai] Thanks for raising this.

Is it is possible for you to share the complete stack trace. It is possible that what you gave is missing the actual cause. If possible please share the schema of the ORC files involved here. I guess the LongColumnVector is coming to play because of `'transactional'='true'` even though the schema includes a single text field.

> ORC row level filter throws Exception
> -------------------------------------
>
>                 Key: ORC-1413
>                 URL: https://issues.apache.org/jira/browse/ORC-1413
>             Project: ORC
>          Issue Type: Bug
>            Reporter: Zoltán Rátkai
>            Assignee: Zoltán Rátkai
>            Priority: Major
>
> The following throws exception in Hive with ORC 1.8.3. 
> CREATE TABLE IF NOT EXISTS mytableorc183(text String) STORED AS orc  TBLPROPERTIES('transactional'='true', 'orc.sarg.to.filter'='true');
> insert into mytableorc183 values("test1");
> select * from mytableorc183 where text='test1';
> select throws this:
> java.io.IOException: java.lang.ClassCastException: org.apache.hadoop.hive.ql.exec.vector.LongColumnVector cannot be cast to org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector
>     at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:624)
>     at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:531)
>     at org.apache.hadoop.hive.ql.exec.FetchTask.executeInner(FetchTask.java:194)
>     at org.apache.hadoop.hive.ql.exec.FetchTask.execute(FetchTask.java:95)
>     at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:212)
>     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:154)
>     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:149)
>     at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:185)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)