maropu commented on a change in pull request #25666: [SPARK-28962][SQL] Provide 
index argument to filter lambda functions
URL: https://github.com/apache/spark/pull/25666#discussion_r369990133
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/higherOrderFunctions.scala
 ##########
 @@ -344,8 +344,13 @@ case class MapFilter(
     Examples:
       > SELECT _FUNC_(array(1, 2, 3), x -> x % 2 == 1);
        [1,3]
+      > SELECT _FUNC_(array(0, 2, 3), (x, i) -> x > i);
 
 Review comment:
   I remember there was the (not-merged) PR to standardize one-based column 
indexes in built-in funcs: https://github.com/apache/spark/pull/24051
   Better to fix them up for consistency?

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

Reply via email to