allisonwang-db commented on code in PR #52122: URL: https://github.com/apache/spark/pull/52122#discussion_r2301741709
########## python/pyspark/sql/connect/functions/builtin.py: ########## @@ -4486,13 +4486,49 @@ def udf( def udtf( - cls: Optional[Type] = None, + cls: Optional[Union[Type, StructType, str]] = None, *, returnType: Optional[Union[StructType, str]] = None, Review Comment: Can we simply move this `*`? like ``` def udtf( cls, returnType, *, useArrow ``` We might need to fix type hint -- 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