You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "ueshin (via GitHub)" <gi...@apache.org> on 2025/07/24 00:31:33 UTC
[PR] [SPARK-52934][PYTHON] Allow yielding scalar values with Arrow-optimized Python UDTF [spark]
ueshin opened a new pull request, #51640:
URL: https://github.com/apache/spark/pull/51640
### What changes were proposed in this pull request?
Allows yielding scalar values with Arrow-optimized Python UDTF.
Also the error class for the case where the number of columns is different from the return schema is fixed.
### Why are the changes needed?
There is a behavior difference in Arrow-optimized Python UDTF between legacy and new serialization.
- legacy allows yielding scalar values
- new one doesn't
```py
@udtf(returnType="a: int")
class TestUDTF:
def eval(self, a: int):
yield a
```
The behavior should be consistent.
### Does this PR introduce _any_ user-facing change?
Yes, the new code path allows yielding scalar values.
### How was this patch tested?
Updated the related tests.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
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
Re: [PR] [SPARK-52934][PYTHON] Allow yielding scalar values with Arrow-optimized Python UDTF [spark]
Posted by "ueshin (via GitHub)" <gi...@apache.org>.
ueshin commented on PR #51640:
URL: https://github.com/apache/spark/pull/51640#issuecomment-3114556361
Thanks! merging to master.
--
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
Re: [PR] [SPARK-52934][PYTHON] Allow yielding scalar values with Arrow-optimized Python UDTF [spark]
Posted by "ueshin (via GitHub)" <gi...@apache.org>.
ueshin closed pull request #51640: [SPARK-52934][PYTHON] Allow yielding scalar values with Arrow-optimized Python UDTF
URL: https://github.com/apache/spark/pull/51640
--
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