zhengruifeng commented on PR #52303: URL: https://github.com/apache/spark/pull/52303#issuecomment-3332496048
> > I feel it is fine, because it is similar to [pandas_udf](https://apache.github.io/spark/api/python/reference/pyspark.sql/api/pyspark.sql.functions.pandas_udf.html?highlight=pandas_udf#pyspark.sql.functions.pandas_udf) which supports both pd.Series and Iterator[pd.Series] > > What about return type? Will we allow different params but only allow one unified return type, or allow matching return type per parameter type, or just allow 4 combinations? This needs to be clarified before extending the types. I think there will be 4 combinations, the PR is https://github.com/apache/spark/pull/52440 - pa.Table -> pa.Table - key, pa.Table -> pa.Table - Iterator[pa. RecordBatch] -> Iterator[pa. RecordBatch] - key, Iterator[pa. RecordBatch] -> Iterator[pa. RecordBatch] -- 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