maropu commented on a change in pull request #29087:
URL: https://github.com/apache/spark/pull/29087#discussion_r551954649



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala
##########
@@ -301,6 +302,185 @@ class SparkSqlParserSuite extends AnalysisTest {
         List.empty, List.empty, None, None, false)))
   }
 
+  test("SPARK-28227: script transform with row format delimit with 
aggregation") {
+    assertEqual(
+      """
+        |SELECT TRANSFORM(a, sum(b), max(c))
+        |  ROW FORMAT DELIMITED
+        |  FIELDS TERMINATED BY ','
+        |  COLLECTION ITEMS TERMINATED BY '#'
+        |  MAP KEYS TERMINATED BY '@'
+        |  LINES TERMINATED BY '\n'
+        |  NULL DEFINED AS 'null'
+        |  USING 'cat' AS (a, b, c)
+        |  ROW FORMAT DELIMITED
+        |  FIELDS TERMINATED BY ','
+        |  COLLECTION ITEMS TERMINATED BY '#'
+        |  MAP KEYS TERMINATED BY '@'
+        |  LINES TERMINATED BY '\n'
+        |  NULL DEFINED AS 'NULL'

Review comment:
       I feel the part above is redundant because we already have the test for 
it, I think: 
https://github.com/apache/spark/blob/14c2edae7e8e02e18a24862a6c113b02719d4785/sql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala#L328-L336
   
   So, how about removing it from these tests?




----------------------------------------------------------------
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]

Reply via email to