calcite
calcite copied to clipboard
Apache Calcite
Now in the calcite,for the following sql query, it would throw an SQL parsing error: ```sql select /*+ */ deptno, min(foo) as x from emp ``` After this PR,above sql...
jira: [CALCITE-5991](https://issues.apache.org/jira/browse/CALCITE-5991) This PR is based on the following facts. 1. AbstractConverter is not an instance of PhysicalNode. So we don't have to try to passThrough or derive Trait on...
jira: [CALCITE-5992](https://issues.apache.org/jira/browse/CALCITE-5992) Since VolcanoPlanner#root will definitely exist in the subsets collection of the Relset related to it, we can skip the comparison between the root Relsubset and itself.
… equivalent SUM0 SqlToRelConverter is translating windowed SUM(...) OVER (...) aggregations into CASE WHEN COUNT(...) OVER (...) > 0 THEN SUM0(...) OVER (...) ELSE NULL END which is not necessary...
https://issues.apache.org/jira/browse/CALCITE-6042 Add test cases by using spark array function rather than calcite array constructor. these cases only work in spark library.