-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29442][SQL] Set default mode should override the existing mode
#26094
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
sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
Outdated
Show resolved
Hide resolved
|
I am looking at spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/streaming/InternalOutputModes.scala Lines 51 to 63 in 5264164
default mode there, and reuse it from DataFrameWriter?
|
|
This list does not include spark/python/pyspark/sql/readwriter.py Lines 594 to 597 in 36559b6
|
|
This sounds like different one. We need a different JIRA.
For |
default mode should override the existing modedefault mode should override the existing mode
|
Retest this please. |
|
Test build #111980 has finished for PR 26094 at commit
|
sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
Outdated
Show resolved
Hide resolved
default mode should override the existing modedefault mode should override the existing mode
|
Hi, All. Thank you for review. |
|
Test build #112043 has finished for PR 26094 at commit
|
|
cc, @cloud-fan and @brkyvz . |
What changes were proposed in this pull request?
This PR aims to fix the behavior of
mode("default")to setSaveMode.ErrorIfExists. Also, this PR updates the exception message by addingdefaultexplicitly.Why are the changes needed?
This is reported during
GRAPH APIPR. This builder pattern should work like the documentation.Does this PR introduce any user-facing change?
Yes if the app has multiple
mode()invocation includingmode("default")and themode("default")is the last invocation. This is really a corner case.No-Op.How was this patch tested?
Pass the Jenkins with the newly added test case.