[SPARK-27974][SQL] Support ANSI Aggregate Function: array_agg#34866
[SPARK-27974][SQL] Support ANSI Aggregate Function: array_agg#34866beliefer wants to merge 6 commits intoapache:masterfrom
Conversation
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Test build #146085 has finished for PR 34866 at commit
|
|
Kubernetes integration test status failure |
|
Test build #146086 has finished for PR 34866 at commit
|
5a87b37 to
7dd4c44
Compare
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146089 has finished for PR 34866 at commit
|
|
ping @MaxGekk @gengliangwang cc @cloud-fan |
There was a problem hiding this comment.
I would write only one test with GROUP BY, which has duplicated values
(1,4),(2,3),(1,4),(2,4)
f746763 to
a895ad7
Compare
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146290 has finished for PR 34866 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
590279c to
990472a
Compare
|
Test build #146305 has finished for PR 34866 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #146314 has finished for PR 34866 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
thanks, merging to master! |
|
@cloud-fan Thank you very much. |
|
Test build #146323 has finished for PR 34866 at commit
|
Please be more careful when writing PR descriptions. How can this be not user-facing? |
What changes were proposed in this pull request?
This PR used to support ANSI aggregate Function:
array_agg.The mainstream database supports
array_aggshow below:Presto
https://prestodb.io/docs/current/functions/aggregate.html
Teradata
https://docs.teradata.com/r/kmuOwjp1zEYg98JsB8fu_A/Xffi_w_BZeSoaXg6Fd76Qw
Snowflake
https://docs.snowflake.com/en/sql-reference/functions/array_agg.html
Oracle
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/JSON_ARRAYAGG.html#GUID-6D56077D-78DE-4CC0-9498-225DDC42E054
H2
http://www.h2database.com/html/functions-aggregate.html#array_agg
Postgresql
https://www.postgresql.org/docs/8.4/functions-aggregate.html
Maria
https://mariadb.com/kb/en/json_arrayagg/
Intersystems
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_jsonarrayagg
MySQL
https://www.mysqltutorial.org/mysql-aggregate-functions.aspx
Druid
https://druid.apache.org/docs/latest/querying/sql.html#aggregation-functions
Why are the changes needed?
array_aggis very useful.Does this PR introduce any user-facing change?
'Yes'. New feature.
How was this patch tested?
New tests.