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