aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXin Wu <xinwu@us.ibm.com>2017-02-13 19:45:58 -0800
committerXiao Li <gatorsmile@gmail.com>2017-02-13 19:45:58 -0800
commit1ab97310e83ee138a1b210c0dfa89a341f1d530a (patch)
treed73150111baf59f4c16af65cf4ea8a3c1607ee4e /docs
parent6e45b547ceadbbe8394bf149945b7942df82660a (diff)
downloadspark-1ab97310e83ee138a1b210c0dfa89a341f1d530a.tar.gz
spark-1ab97310e83ee138a1b210c0dfa89a341f1d530a.tar.bz2
spark-1ab97310e83ee138a1b210c0dfa89a341f1d530a.zip
[SPARK-19539][SQL] Block duplicate temp table during creation
## What changes were proposed in this pull request? Current `CREATE TEMPORARY TABLE ... ` is deprecated and recommend users to use `CREATE TEMPORARY VIEW ...` And it does not support `IF NOT EXISTS `clause. However, if there is an existing temporary view defined, it is possible to unintentionally replace this existing view by issuing `CREATE TEMPORARY TABLE ...` with the same table/view name. This PR is to disallow `CREATE TEMPORARY TABLE ...` with an existing view name. Under the cover, `CREATE TEMPORARY TABLE ...` will be changed to create temporary view, however, passing in a flag `replace=false`, instead of currently `true`. So when creating temporary view under the cover, if there is existing view with the same name, the operation will be blocked. ## How was this patch tested? New unit test case is added and updated some existing test cases to adapt the new behavior Author: Xin Wu <xinwu@us.ibm.com> Closes #16878 from xwu0226/block_duplicate_temp_table.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions