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

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

Amandeep Sharma created CALCITE-4592:
----------------------------------------

             Summary: 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


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)