maropu commented on a change in pull request #26366: [SPARK-29722][SQL] Non 
reversed keywords should be able to be used in high order functions
URL: https://github.com/apache/spark/pull/26366#discussion_r341834215
 
 

 ##########
 File path: 
sql/core/src/test/resources/sql-tests/inputs/higher-order-functions.sql
 ##########
 @@ -12,9 +12,14 @@ select transform(zs, z -> z) as v from nested;
 
 -- Transform an array
 select transform(ys, y -> y * y) as v from nested;
+-- use non reversed keywords
+select transform(ys, left -> left * left) as v from nested;
+
 
 -- Transform an array with index
 select transform(ys, (y, i) -> y + i) as v from nested;
+-- use non reversed keywords
+select transform(ys, (cost, i) -> cost + i) as v from nested;
 
 Review comment:
   Can you move the two tests above into the end of the file to make diff 
smaller in `sq.out`.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to