yaooqinn 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_r341841902
########## 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: thanks for you suggestion. I just moved them to the end of this file, and add some cases to verify with ansi flag. ---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
