xuzifu666 commented on code in PR #5317:
URL: https://github.com/apache/calcite/pull/5317#discussion_r4295716093
##########
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:
##########
@@ -12663,6 +12615,77 @@ private void checkLiteral2(String expression, String
expected) {
.ok(expected);
}
+ /** Test case for
Review Comment:
Thank you for the reminder.
I verified the failure on 1.26 directly, would error out with NPE:
```
Exception in thread "main" java.lang.NullPointerException: Cannot invoke
"org.apache.calcite.rel.rel2sql.SqlImplementor$Context.field(int)"
because "correlAliasContext" is null
at
org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:705)
at
org.apache.calcite.rel.rel2sql.RelToSqlConverter.visit(RelToSqlConverter.java:338)
```
In addition, tests from Jira cannot be used directly: the test builds the
plan programmatically rather than using the JIRA's SQL verbatim, because the
standard sql-to-rel conversion never produces the plan shape that triggers this
bug.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]