Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add support for a QUALIFY clause in a query with a GROUP BY. In this case, the QUALIFY expression may reference aggregate functions. Previously such queries would give a ClassCastException (trying to convert a LogicalAggregate to a LogicalProject). If a QUALIFY expression references or duplicates an expression in the SELECT clause, we no longer detect and deduplicate that. This has made one or two plans more verbose. Potentially we would add back deduplication. Also converted a few collections from SqlNodeList to List<SqlNode>. Wrapping the lists as a SqlNode was not buying us much. Added method `SqlBasicVisitor.visitAll(List<SqlNode>)`. Close #4061
- Loading branch information