-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-11564][SQL][follow-up] clean up java tuple encoder #9567
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
Conversation
|
Test build #45362 has finished for PR 9567 at commit
|
|
retest this please. |
|
Test build #45375 has finished for PR 9567 at commit
|
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.
It seems this is very hard unless we expose the API for creating Tuples from encoders?
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.
yea, I think so. We already have Expression.tuple and I think we can use that after some adjustment.
|
Can you also get rid of the unneeded methods |
|
Test build #45479 has finished for PR 9567 at commit
|
|
Test build #45482 has finished for PR 9567 at commit
|
|
Test build #45490 has finished for PR 9567 at commit
|
|
Test build #45477 has finished for PR 9567 at commit
|
|
Test build #45493 has finished for PR 9567 at commit
|
|
Sorry, there are conflicts now. |
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.
@marmbrus renaming to Encoders works!
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.
oh awesome!
|
Test build #45588 has finished for PR 9567 at commit
|
|
retest this please. |
|
Test build #45624 has finished for PR 9567 at commit
|
|
retest this please |
|
Test build #45631 has finished for PR 9567 at commit
|
|
Thanks! Merging to master and 1.6. |
We need to support custom classes like java beans and combine them into tuple, and it's very hard to do it with the TypeTag-based approach. We should keep only the compose-based way to create tuple encoder. This PR also move `Encoder` to `org.apache.spark.sql` Author: Wenchen Fan <[email protected]> Closes #9567 from cloud-fan/java. (cherry picked from commit ec2b807) Signed-off-by: Michael Armbrust <[email protected]>
We need to support custom classes like java beans and combine them into tuple, and it's very hard to do it with the TypeTag-based approach. We should keep only the compose-based way to create tuple encoder. This PR also move `Encoder` to `org.apache.spark.sql` Author: Wenchen Fan <[email protected]> Closes apache#9567 from cloud-fan/java.
We need to support custom classes like java beans and combine them into tuple, and it's very hard to do it with the TypeTag-based approach.
We should keep only the compose-based way to create tuple encoder.
This PR also move
Encodertoorg.apache.spark.sql