Resolve SQL unified query gaps for HAVING, FROM-less SELECT, window ORDER BY#5468
Conversation
PR Reviewer Guide 🔍(Review updated until commit 32dc35c)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 32dc35c Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 8b8d26a
Suggestions up to commit 017a584
|
017a584 to
8b8d26a
Compare
|
Persistent review updated to latest commit 8b8d26a |
…n V2 SQL - HAVING / post-aggregate refs: visitAggregateFunction resolves via a Map<AggregateFunction, Integer> registry on CalcitePlanContext, populated by visitAggregation using position arithmetic. Covers HAVING aggr > N, COUNT(*), alias references, scalar wrappers (ABS(MAX(x))), and arithmetic between aggregates. - FROM-less SELECT: visitValues uses LogicalValues.createOneRow so SELECT 1 returns one row instead of zero. - Window ORDER BY: translateOrderKeys defaults unspecified NULLS to NULLS FIRST, matching top-level ORDER BY semantics. Signed-off-by: Chen Dai <daichen@amazon.com>
8b8d26a to
32dc35c
Compare
|
Persistent review updated to latest commit 32dc35c |
Description
Follow-up to #5450, addressing three more gaps in the SQL V2 path on the Analytics Engine:
visitAggregateFunctionresolves via aMap<AggregateFunction, Integer>registry onCalcitePlanContext, populated byvisitAggregationusing position arithmetic.visitValuesusesLogicalValues.createOneRowsoSELECT 1returns one row instead of zero.translateOrderKeysdefaults unspecified NULLS to NULLS FIRST, matching top-level ORDER BY.Related Issues
Part of #5248
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.