-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50238][PYTHON] Add Variant Support in PySpark UDFs/UDTFs/UDAFs
### What changes were proposed in this pull request? This PR adds support for the Variant type in PySpark UDFs/UDTFs/UDAFs. Support is added in both modes - arrow and pickle - and support is also added in pandas UDFs. ### Why are the changes needed? After this change, users will be able to use the new Variant data type with UDFs, which is currently prohibited. ### Does this PR introduce _any_ user-facing change? Yes, users should now be able to use Variants with Python UDFs. ### How was this patch tested? Unit tests in all scenarios - arrow, pickle and pandas ### Was this patch authored or co-authored using generative AI tooling? No. Closes #48770 from harshmotw-db/harsh-motwani_data/variant_udf_3. Authored-by: Harsh Motwani <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information
1 parent
4f4eb22
commit 4002a53
Showing
16 changed files
with
595 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.