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

Re: [PR] [SPARK-52980][PYTHON] Support Arrow Python UDTFs [spark]

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


##########
python/pyspark/sql/udtf.py:
##########
@@ -242,6 +247,61 @@ def _create_py_udtf(
     )
 
 
+def _create_pyarrow_udtf(
+    cls: Type,
+    returnType: Optional[Union[StructType, str]],
+    name: Optional[str] = None,
+    deterministic: bool = False,
+) -> "UserDefinedTableFunction":
+    """Create a PyArrow-native Python UDTF."""
+    # Validate PyArrow dependencies
+    try:
+        require_minimum_pandas_version()

Review Comment:
   nit, it seems arrow udtf doesn't depend on pandas?



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