zhztheplayer commented on issue #1162: [CALCITE-2343] PushProjector with OVER expression causes infinite loop (Chunwei Lei) URL: https://github.com/apache/calcite/pull/1162#issuecomment-483494894 I am not sure. I run a case ```sql select e.sal + b.comm, sum(b.sal + b.sal) over (partition by b.job) from emp e join bonus b on e.ename = b.ename and e.deptno = 10 ``` The planner gives me ``` LogicalProject(EXPR$0=[+($1, $6)], EXPR$1=[SUM(+($5, $5)) OVER (PARTITION BY $4 RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)]) LogicalJoin(condition=[AND(=($0, $3), $2)], joinType=[inner]) LogicalProject(ENAME=[$1], SAL=[$5], ==[=($7, 10)]) LogicalTableScan(table=[[CATALOG, SALES, EMP]]) LogicalProject(ENAME=[$0], JOB=[$1], SAL=[$2], COMM=[$3]) LogicalTableScan(table=[[CATALOG, SALES, BONUS]]) ```
---------------------------------------------------------------- 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
