You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2023/08/21 01:04:03 UTC

[GitHub] [spark] HyukjinKwon commented on a diff in pull request #40085: [SPARK-42492][SQL] Add new function filter_value

HyukjinKwon commented on code in PR #40085:
URL: https://github.com/apache/spark/pull/40085#discussion_r1299485759


##########
python/pyspark/sql/functions.py:
##########
@@ -13068,6 +13068,46 @@ def _invoke_higher_order_function(
     return Column(cast(JVMView, sc._jvm).Column(expr(*jcols + jfuns)))
 
 
+@try_remote_functions
+def filter_value(col: "ColumnOrName", f: Callable[[Column], Column]) -> Column:
+    """
+    Returns the column if the predicate holds true, otherwise null.
+
+    .. versionadded:: 3.5.0

Review Comment:
   probably 4.0.0



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

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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