Uh oh!
There was an error while loading. Please reload this page.
Revert "[SPARK-35028][SQL] ANSI mode: disallow group by aliases" - #33758
Revert "[SPARK-35028][SQL] ANSI mode: disallow group by aliases"#33758gengliangwang wants to merge 2 commits into
Conversation
| @@ -1 +0,0 @@ | |||
| --IMPORT group-analytics.sql No newline at end of file | |||
There was a problem hiding this comment.
Do we need to remove the result file?
SparkQA
commented
Aug 17, 2021
Kubernetes integration test starting |
SparkQA
commented
Aug 17, 2021
Kubernetes integration test status success |
SparkQA
commented
Aug 17, 2021
Kubernetes integration test starting |
SparkQA
commented
Aug 17, 2021
Test build #142533 has finished for PR 33758 at commit
|
SparkQA
commented
Aug 17, 2021
Kubernetes integration test status success |
gengliangwang
commented
Aug 17, 2021
Merging to master/3.2 |
### What changes were proposed in this pull request? Revert [[SPARK-35028][SQL] ANSI mode: disallow group by aliases ](#32129) ### Why are the changes needed? It turns out that many users are using the group by alias feature. Spark has its precedence rule when alias names conflict with column names in Group by clause: always use the table column. This should be reasonable and acceptable. Also, external DBMS such as PostgreSQL and MySQL allow grouping by alias, too. As we are going to announce ANSI mode GA in Spark 3.2, I suggest allowing the group by alias in ANSI mode. ### Does this PR introduce _any_ user-facing change? No, the feature is not released yet. ### How was this patch tested? Unit tests Closes#33758 from gengliangwang/revertGroupByAlias. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Gengliang Wang <gengliang@apache.org> (cherry picked from commit 8bfb4f1) Signed-off-by: Gengliang Wang <gengliang@apache.org>
SparkQA
commented
Aug 17, 2021
Test build #142547 has finished for PR 33758 at commit
|
dongjoon-hyun
commented
Aug 17, 2021
+1, LGTM. |
### What changes were proposed in this pull request? Revert [[SPARK-35028][SQL] ANSI mode: disallow group by aliases ](apache#32129) ### Why are the changes needed? It turns out that many users are using the group by alias feature. Spark has its precedence rule when alias names conflict with column names in Group by clause: always use the table column. This should be reasonable and acceptable. Also, external DBMS such as PostgreSQL and MySQL allow grouping by alias, too. As we are going to announce ANSI mode GA in Spark 3.2, I suggest allowing the group by alias in ANSI mode. ### Does this PR introduce _any_ user-facing change? No, the feature is not released yet. ### How was this patch tested? Unit tests Closesapache#33758 from gengliangwang/revertGroupByAlias. Authored-by: Gengliang Wang <gengliang@apache.org> Signed-off-by: Gengliang Wang <gengliang@apache.org> (cherry picked from commit 8bfb4f1) Signed-off-by: Gengliang Wang <gengliang@apache.org>
What changes were proposed in this pull request?
Revert [SPARK-35028][SQL] ANSI mode: disallow group by aliases
Why are the changes needed?
It turns out that many users are using the group by alias feature. Spark has its precedence rule when alias names conflict with column names in Group by clause: always use the table column. This should be reasonable and acceptable.
Also, external DBMS such as PostgreSQL and MySQL allow grouping by alias, too.
As we are going to announce ANSI mode GA in Spark 3.2, I suggest allowing the group by alias in ANSI mode.
Does this PR introduce any user-facing change?
No, the feature is not released yet.
How was this patch tested?
Unit tests