Uh oh!
There was an error while loading. Please reload this page.
[SPARK-13121] [Streaming] java mapWithState mishandles scala Option - #11007
[SPARK-13121] [Streaming] java mapWithState mishandles scala Option#11007sparkyengine wants to merge 1 commit into
Conversation
java mapwithstate with Function3 has wrong conversion of java Optional to scala Option
holdenk
commented
Feb 1, 2016
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 |
zsxwing
commented
Feb 1, 2016
Jenkins, test this please |
zsxwing
commented
Feb 1, 2016
@gabrielenizzoli Thanks, good catch. Please follow the instructions in https://cwiki.apache.org/confluence/display/SPARK/Contributing+to+Spark |
SparkQA
commented
Feb 1, 2016
Test build #50501 has finished for PR 11007 at commit
|
zsxwing
commented
Feb 2, 2016
retest this please |
SparkQA
commented
Feb 2, 2016
Test build #50516 has finished for PR 11007 at commit
|
zsxwing
commented
Feb 2, 2016
retest this please |
SparkQA
commented
Feb 2, 2016
Test build #50544 has finished for PR 11007 at commit
|
srowen
commented
Feb 2, 2016
This sounds correct to me. |
zsxwing
commented
Feb 2, 2016
retest this please |
SparkQA
commented
Feb 2, 2016
Test build #50571 has finished for PR 11007 at commit
|
zsxwing
commented
Feb 2, 2016
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.
zsxwing
commented
Feb 2, 2016
@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! |
sparkyengine
commented
Feb 2, 2016
@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? |
zsxwing
commented
Feb 2, 2016
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.