Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The SQL
select * from "product" where ("product_id") in (12, null)
When we convert the IN-list to OR condition, it can run successfully. But when we convert it to VALUES, it will throw NPE:
java.lang.NullPointerException at org.apache.calcite.rel.rel2sql.SqlImplementor.toSql(SqlImplementor.java:1468) at org.apache.calcite.rel.rel2sql.SqlImplementor.toSql(SqlImplementor.java:1416) at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:702) at org.apache.calcite.rel.rel2sql.RelToSqlConverter.lambda$exprList$17(RelToSqlConverter.java:1158)
Attachments
Issue Links
- links to