You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Benoit Hanotte (JIRA)" <ji...@apache.org> on 2018/07/17 16:21:02 UTC
[jira] [Updated] (CALCITE-2417) Select * on table with nested
struct throws ClassCastException: RexInputRef cannot be cast to
RexCorrelVariable
[ https://issues.apache.org/jira/browse/CALCITE-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Hanotte updated CALCITE-2417:
------------------------------------
Description:
Trying to convert the pysical plan of a _select *_ query on a table with a nested struct throws ClassCastException as RexInputRef cannot be cast to RexCorrelVariable due to the cast to RecCorrelVariable not being done on the nested expression of RexInputRef:
_Caused by: java.lang.ClassCastException: org.apache.calcite.rex.RexInputRef cannot be cast to org.apache.calcite.rex.RexCorrelVariable_
_at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:446)_
_at org.apache.calcite.rel.rel2sql.RelToSqlConverter.visit(RelToSqlConverter.java:182)_
_... 38 more_
I have been able to isolate the issue in a test case, you will find a link to a test case reproducing the issue in this ticket's comments.
was:
Trying to convert a query on a table with nested struct throw ClassCastException as RexInputRef cannot be cast to RexCorrelVariable:
_Caused by: java.lang.ClassCastException: org.apache.calcite.rex.RexInputRef cannot be cast to org.apache.calcite.rex.RexCorrelVariable_
_at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:446)_
_at org.apache.calcite.rel.rel2sql.RelToSqlConverter.visit(RelToSqlConverter.java:182)_
_... 38 more_
I have been able to isolate the issue in a test case, you will find a link to a test case reproducing the issue in this ticket's comments.
> Select * on table with nested struct throws ClassCastException: RexInputRef cannot be cast to RexCorrelVariable
> ---------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-2417
> URL: https://issues.apache.org/jira/browse/CALCITE-2417
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.16.0, next
> Reporter: Benoit Hanotte
> Assignee: Julian Hyde
> Priority: Major
>
> Trying to convert the pysical plan of a _select *_ query on a table with a nested struct throws ClassCastException as RexInputRef cannot be cast to RexCorrelVariable due to the cast to RecCorrelVariable not being done on the nested expression of RexInputRef:
>
> _Caused by: java.lang.ClassCastException: org.apache.calcite.rex.RexInputRef cannot be cast to org.apache.calcite.rex.RexCorrelVariable_
> _at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:446)_
> _at org.apache.calcite.rel.rel2sql.RelToSqlConverter.visit(RelToSqlConverter.java:182)_
> _... 38 more_
>
>
> I have been able to isolate the issue in a test case, you will find a link to a test case reproducing the issue in this ticket's comments.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)