GitHub user OopsOutOfMemory opened a pull request:

    https://github.com/apache/spark/pull/4175

    [SPARK-3298][SQL] Add flag control overwrite registerAsTable / 
registerTempTable

    https://issues.apache.org/jira/browse/SPARK-3298
    
    add a flag `allowOverwrite`  to control registerTempTable.
    
    By default it is `true` means register table will overwrite the previous 
table. 
    (like var tempTable)
    
    If set it to `false`, means the registerTempTable command will check the 
table name exists or not and if exists, throw a  table already exists 
exception. Then you should drop it first and then register it again.
    (like final tempTable)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/OopsOutOfMemory/spark register

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4175.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4175
    
----
commit 49613a2f9dbd53c189cc54991f778bc55c1ec918
Author: OopsOutOfMemory <[email protected]>
Date:   2015-01-23T08:09:38Z

    initial

commit 6fb569451dd0b880f9865a67c2851071dba59fdb
Author: OopsOutOfMemory <[email protected]>
Date:   2015-01-23T09:09:00Z

    refine test sutie correct inconsistence

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to