dongjoon-hyun commented on code in PR #50160: URL: https://github.com/apache/spark/pull/50160#discussion_r1981879585
########## python/pyspark/sql/connect/udf.py: ########## @@ -77,6 +79,17 @@ def _create_py_udf( eval_type: int = PythonEvalType.SQL_BATCHED_UDF if is_arrow_enabled: + try: + require_minimum_pandas_version() + require_minimum_pyarrow_version() + except ImportError: + is_arrow_enabled = False + warnings.warn( Review Comment: This seems to fail at linter. Could you check this, @HyukjinKwon ? ``` ./python/pyspark/sql/connect/udf.py:87:13: F821 undefined name 'warnings' warnings.warn( ``` -- 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