vineetgarg02 commented on a change in pull request #1172: [CALCITE-3007] Type
mismatch for ANY subquery in project (Vineet Garg)
URL: https://github.com/apache/calcite/pull/1172#discussion_r277054598
##########
File path: core/src/test/resources/org/apache/calcite/test/RelOptRulesTest.xml
##########
@@ -7466,7 +7540,7 @@ LogicalProject(DEPTNO=[$0])
<![CDATA[
LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], HIREDATE=[$4],
SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8])
LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], MGR=[$3], HIREDATE=[$4],
SAL=[$5], COMM=[$6], DEPTNO=[$7], SLACKER=[$8])
- LogicalFilter(condition=[OR(AND(>($0, $9), <>($10, 0)), AND(>($0, $9),
<>($10, 0), IS NOT TRUE(>($0, $9)), <=($10, $11)))])
+ LogicalFilter(condition=[OR(AND(IS TRUE(>($0, $9)), <>($10, 0)),
AND(>($10, $11), null, <>($10, 0), IS NOT TRUE(>($0, $9))), AND(>($0, $9),
<>($10, 0), IS NOT TRUE(>($0, $9)), <=($10, $11)))])
Review comment:
@hsyuan This is the result of CASE simplification. With cast it looks like
CASE was simplified to this. I went over this and it looks semantically correct
to me.
----------------------------------------------------------------
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]
With regards,
Apache Git Services