[RFC] Make aggregation statement compilation robust #2767
Labels
catch-all acknowledged
Marks issues caught in catch-all triage for searchability
enhancement
New feature or request
Is your feature request related to a problem?
Aggregation statement, query with aggregate function, group-by clause that we've supported, grouping set, cube that we haven't supported, has many restrictions based on SQL standard. OpenSearch SQL adapts MySQL grammar as it initial grammar, but the query compilation check should be done in query resolution/analyzing. Current query compilation check is weak, especially for aggregation statement.
Here is the result comparison of query compilation check between OpenSearch SQL, Spark, Postgres and Oracle.
3
Ava,1; Clark,1; Dave,1
Ava,1; Clark,1; Dave,1
We should fix above query compilation error to make aggregation more robust.
What solution would you like?
This RFC is to address the weakness of query compilation for aggregation statement, including query with aggregate function, window function, group-by clause etc.
We will align with semantics of Spark and PostgresSQL as possible as we can. If the behaviours between Spark and PostgresSQL are different, we will choose the option which one could mitigate the impact or reduces breaking change.
What alternatives have you considered?
A clear and concise description of any alternative solutions or features you've considered.
Do you have any additional context?
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: