-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-6996][SQL] Support map types in java beans #5578
Conversation
Test build #30552 has finished for PR 5578 at commit
|
Test build #30553 has finished for PR 5578 at commit
|
Test build #30554 has finished for PR 5578 at commit
|
Test build #30555 has finished for PR 5578 at commit
|
Test build #30557 has finished for PR 5578 at commit
|
val (dataType, nullable) = inferDataType(typeToken.getComponentType) | ||
(ArrayType(dataType, nullable), true) | ||
|
||
case _ if iterableType.isAssignableFrom(typeToken) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spark style avoids { }
for case
statements.
Thanks for working on this. I did not know this was possible given erasure! A few minor comments, otherwise LGTM. |
@marmbrus relative to my earlier commit, I removed the code to handle Java |
Have you looked in CatalystConverters? There is handler for JMap, but
|
Thanks, |
Test build #30622 has finished for PR 5578 at commit
|
Test build #30624 has finished for PR 5578 at commit
|
Test build #30625 has finished for PR 5578 at commit
|
Test build #30627 has finished for PR 5578 at commit
|
Thanks! Merged to master. |
liancheng mengxr this is similar to apache#5146. Author: Punya Biswal <[email protected]> Closes apache#5578 from punya/feature/SPARK-6996 and squashes the following commits: d56c3e0 [Punya Biswal] Fix imports c7e308b [Punya Biswal] Support java iterable types in POJOs 5e00685 [Punya Biswal] Support map types in java beans
@liancheng @mengxr this is similar to #5146.