-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46791][SQL] Support Java Set in JavaTypeInference
### What changes were proposed in this pull request? This patch adds the support of Java `Set` as bean field in `JavaTypeInference`. ### Why are the changes needed? Scala `Set` (`scala.collection.Set`) is supported in `ScalaReflection` so users can encode Scala `Set` in Dataset. But Java `Set` is not supported in bean encoder (i.e., `JavaTypeInference`). This feature inconsistency makes Java users cannot use `Set` like Scala users do. ### Does this PR introduce _any_ user-facing change? Yes. Java `Set` is supported to be part of Java bean when encoding with bean encoder. ### How was this patch tested? Added tests. ### Was this patch authored or co-authored using generative AI tooling? No Closes #44828 from viirya/java_set. Authored-by: Liang-Chi Hsieh <viirya@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information
1 parent
02533d7
commit 667c0a9
Showing
6 changed files
with
136 additions
and
5 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
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