ueshin commented on code in PR #50160: URL: https://github.com/apache/spark/pull/50160#discussion_r1980598264
########## python/pyspark/sql/connect/udf.py: ########## @@ -78,6 +80,15 @@ def _create_py_udf( eval_type: int = PythonEvalType.SQL_BATCHED_UDF + if is_arrow_enabled: + require_minimum_pandas_version() + require_minimum_pyarrow_version() + warnings.warn( + "Arrow optimization failed to enable because PyArrow is not installed. " + "Falling back to a non-Arrow-optimized UDF.", + RuntimeWarning, + ) Review Comment: This needs try-catch and set `is_arrow_enabled` to `False`? -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org