-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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-13094][SQL] Add encoders for seq/array of primitives #11014
Conversation
Test build #50523 has finished for PR 11014 at commit
|
Test build #50528 has finished for PR 11014 at commit
|
Can we add support for Java? |
Sure, but I don't think we want to just enumerate in that API like we have to here for implicits to work. Instead we should do something like we do for tuples where you can compose. I'll defer that to SPARK-13128 so this can make 1.6.1. |
implicit def newBooleanSeqEncoder: Encoder[Seq[Boolean]] = ExpressionEncoder() | ||
|
||
/** @since 1.6.1 */ | ||
implicit def newStringSeqEncoder: Encoder[Seq[String]] = ExpressionEncoder() |
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.
how about seq of product?
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.
Yeah, i went back and forth on that. I guess its probably useful.
LGTM |
Test build #50538 has finished for PR 11014 at commit
|
No description provided.