Skip to content
Prev Previous commit
Next Next commit
- debug
  • Loading branch information
xinrong-meng committed Apr 17, 2023
commit 0fb7712ae93662172db19d403badb511ff8b6214
1 change: 0 additions & 1 deletion python/pyspark/sql/connect/udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def _create_py_udf(
and not isinstance(return_type, ArrayType)
)
if is_arrow_enabled and is_output_atomic_type and is_func_with_args:
print("entering _create_arrow_py_udf")
return _create_arrow_py_udf(f, regular_udf)
else:
return regular_udf
Expand Down
1 change: 0 additions & 1 deletion python/pyspark/sql/udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ def _create_py_udf(


def _create_arrow_py_udf(f, regular_udf): # type: ignore
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring the type annotations of _create_arrow_py_udf because it is shared between vanilla PySpark and Spark Connect Python Client.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function is only an extraction of original code L142 - L179 for code reuse.

print("entered _create_arrow_py_udf")
require_minimum_pandas_version()
require_minimum_pyarrow_version()

Expand Down