-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20440][SparkR] Allow SparkR session and context to have delayed bindings #17731
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 #76073 has finished for PR 17731 at commit
|
|
this might be reasonable, but ...which is what I understand from the email exchange on user@, I think. Could you elaborate if this is what you are trying to support? |
|
Test build #76074 has finished for PR 17731 at commit
|
|
also, what if an user wants to explicitly create a spark session with specific parameter? the delay binding model doesn't seem to support that properly? |
|
@felixcheung yes. We need to support these two types of possibilities: or Internal implementations of APIs like |
|
I understand these 2 cases, can you explain how your change connect to these two? |
|
"I understand these 2 cases, can you explain how your change connect to these two?" Say, I do this: Now, when the user code such as this runs: this sequence occurs: The change is to ignore the "Promise under evaluation" error. At the line where error occurs, there doesn't seem to be any other possible cause for failure since the previous line of code has already checked that the Similar is the case with When |
|
so essentially it's still evaluating the what if you have this instead to break the loop? |
|
Thanks, I tried this out - looks like doing a |
|
great - if you have a workaround our preference would be not to change Spark for it. |
|
Thanks, I will close this PR. |
What changes were proposed in this pull request?
Allow SparkR to ignore the "promise already under evaluation" error in case the user has created a delayed binding for the
.sparkRsession / .sparkRjscnames in theSparkR:::.sparkREnv.How was this patch tested?
Ran all unit tests - run-tests.sh