zhengruifeng commented on code in PR #49821:
URL: https://github.com/apache/spark/pull/49821#discussion_r1943979055


##########
python/pyspark/ml/connect/functions.py:
##########
@@ -31,3 +31,43 @@ def array_to_vector(col: Column) -> Column:
 
 
 array_to_vector.__doc__ = PyMLFunctions.array_to_vector.__doc__
+
+
+# predict_batch_udf is compatible with Spark Connect,
+# add it here to reuse the doctest.
+def _predict_batch_udf() -> Column:

Review Comment:
   good idea!



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to