-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-13121] [Streaming] java mapWithState mishandles scala Option #11007
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
java mapwithstate with Function3 has wrong conversion of java Optional to scala Option
|
Hi @gabrielenizzoli - generally Spark require's that there is a JIRA associated the proposed change as well as having it mentioned in the pull request title. This is also just merging against the 1.6 branch but generally most changes are applied to master and then explicitly back ported (looking in master it seems to have changed as part of the migration away from having guava in the public API to |
|
Jenkins, test this please |
|
@gabrielenizzoli Thanks, good catch. Please follow the instructions in https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark |
|
Test build #50501 has finished for PR 11007 at commit
|
|
retest this please |
|
Test build #50516 has finished for PR 11007 at commit
|
|
retest this please |
|
Test build #50544 has finished for PR 11007 at commit
|
|
This sounds correct to me. |
|
retest this please |
|
Test build #50571 has finished for PR 11007 at commit
|
|
LGTM. Merging to master and 1.6. Thanks @gabrielenizzoli |
java mapwithstate with Function3 has wrong conversion of java `Optional` to scala `Option`, fixed code uses same conversion used in the mapwithstate call that uses Function4 as an input. `Optional.fromNullable(v.get)` fails if v is `None`, better to use `JavaUtils.optionToOptional(v)` instead. Author: Gabriele Nizzoli <mail@nizzoli.net> Closes #11007 from gabrielenizzoli/branch-1.6.
|
@gabrielenizzoli I have merged this PR to branch 1.6. Could you open a new PR to fix the master branch and close this one? Thanks! |
|
@zsxwing yes, I will close this PR and create a new one for master. Should I assign the same jira issue number to the PR for master? |
Just make the new PR has the same title of this one. |
java mapwithstate with Function3 has wrong conversion of java
Optionalto scalaOption, fixed code uses same conversion used in the mapwithstate call that uses Function4 as an input.Optional.fromNullable(v.get)fails if v isNone, better to useJavaUtils.optionToOptional(v)instead.