AngersZhuuuu commented on a change in pull request #32333:
URL: https://github.com/apache/spark/pull/32333#discussion_r620011217
##########
File path: sql/core/src/test/resources/sql-tests/inputs/transform.sql
##########
@@ -342,3 +354,41 @@ SELECT TRANSFORM(b, MAX(a) AS max_a, CAST(sum(c) AS
STRING))
FROM script_trans
WHERE a <= 2
GROUP BY b;
+
+-- SPARK-33985 TRANSFORM with CLUSTER BY/ORDER BY/SORT BY
Review comment:
> nit: `SPARK-33985 ` -> `SPARK-33985: `
Done
##########
File path: sql/core/src/test/resources/sql-tests/inputs/transform.sql
##########
@@ -342,3 +354,41 @@ SELECT TRANSFORM(b, MAX(a) AS max_a, CAST(sum(c) AS
STRING))
FROM script_trans
WHERE a <= 2
GROUP BY b;
+
+-- SPARK-33985: TRANSFORM with CLUSTER BY/ORDER BY/SORT BY
+FROM (
Review comment:
> can we use the standard TRANSFORM syntax? Or we write the tests for
hive compatibility?
Yea, for compatibility, since we have less test about transform before.
Since I am always checking transform use case between hive and spark.
##########
File path: sql/core/src/test/resources/sql-tests/inputs/transform.sql
##########
@@ -342,3 +354,41 @@ SELECT TRANSFORM(b, MAX(a) AS max_a, CAST(sum(c) AS
STRING))
FROM script_trans
WHERE a <= 2
GROUP BY b;
+
+-- SPARK-33985: TRANSFORM with CLUSTER BY/ORDER BY/SORT BY
+FROM (
Review comment:
> can we use the standard TRANSFORM syntax? Or we write the tests for
hive compatibility?
Yea, for compatibility, since we have less test about transform before.
Since I am always checking transform use case between hive and spark. Since
this is a important use case of hive's script transform, so add tests to
confirm the compatibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]