You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/04/27 05:15:00 UTC

[jira] [Updated] (CALCITE-4592) RelToSqlConverter#visit(Join e) does not populate correlation context

     [ https://issues.apache.org/jira/browse/CALCITE-4592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated CALCITE-4592:
------------------------------------
    Labels: pull-request-available  (was: )

> RelToSqlConverter#visit(Join e) does not populate correlation context
> ---------------------------------------------------------------------
>
>                 Key: CALCITE-4592
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4592
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.26.0
>            Reporter: Amandeep Sharma
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Correlation context is populated for the followings:
>  * Project
>  * Filter
>  * Calc
>  * Correlate
> But it is not populated for _Join._ Because of it, using joiner's correlation id causes below exception
> {code:java}
> Caused by:
> java.lang.NullPointerException
>     at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:506)
>     at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:828)
>     at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:668)
>     at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:828)
>     at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:668)
>     at org.apache.calcite.rel.rel2sql.RelToSqlConverter.visit(RelToSqlConverter.java:213)
>     ... 65 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)