amandeep-sharma opened a new pull request #2407:
URL: https://github.com/apache/calcite/pull/2407


   …rter
   
   Correlation context is populated in RelToSqlConverter 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
   
   `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`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to