AngersZhuuuu commented on a change in pull request #32149:
URL: https://github.com/apache/spark/pull/32149#discussion_r612894887
##########
File path: sql/core/src/test/resources/sql-tests/results/transform.sql.out
##########
@@ -638,3 +639,15 @@ struct<b:string>
1
2
3
+
+
+-- !query
+SELECT TRANSFORM(distinct b, a, c)
Review comment:
> BTW why do we support `TRANSFORM(a as b)`? is it from Hive? Normal
function parameters can't have alias.
Hive not support this.

may be we should not use
```
namedExpressionSeq
: namedExpression (',' namedExpression)*
;
(SELECT kind=TRANSFORM '(' namedExpressionSeq ')'
| kind=MAP namedExpressionSeq
| kind=REDUCE namedExpressionSeq)
```
maybe
```
expressionSeq
: expression(',' expression)
;
(SELECT kind=TRANSFORM '(' expressionSeq ')'
| kind=MAP expressionSeq
| kind=REDUCE eExpressionSeq)
```
--
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]