-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
[SPARK-3298][SQL] Add flag control overwrite registerAsTable / registerTempTable #4175
Conversation
@marmbrus Any comments here ? |
Can one of the admins verify this patch? |
/cc @scwf @chenghao-intel |
Jenkins this is OK to test |
this is mentioned in the jira, but its worth noting again here that this changes the behavior slightly, since it wouldn't throw an exception before. |
lets try this again ... |
ok to test |
Test build #26119 has started for PR 4175 at commit
|
Test build #26119 has finished for PR 4175 at commit
|
Test FAILed. |
I think these failures are real, looks like you need to do a similar updating of the args to there are more places too, look in the test console output for the full list |
Thanks, squito :) |
Test build #26141 has started for PR 4175 at commit
|
Test build #26141 has finished for PR 4175 at commit
|
Test PASSed. |
26c6011
to
5ad78f6
Compare
https://issues.apache.org/jira/browse/SPARK-3298
add a flag
allowOverwrite
to control overwrite registerTempTable.By default it is
true
meansregisterTempTable
command will overwrite the previous table has same name.(like var tempTable)
If set it to
false
, means theregisterTempTable
command will check the same name table exists in catalog or not and if exists throw a table already exists exception.(like final tempTable)
You could drop it first and then register it again.