[
https://issues.apache.org/jira/browse/IMPALA-10710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Mollitor updated IMPALA-10710:
------------------------------------
Description:
As I understand the code, Impala performs HMS/Kudu {{CREATE TABLE}} interaction
as:
* Create the table in Kudu
* Register table with HMS
* Drop the Kudu table on HMS error
This is generally OK, except that it drops the table from Kudu on a
{{TableAlreadyExists}} Exception.
So, if I issue the same {{CREATE TABLE}} statement twice, the data will be
dropped from Kudu on the second execution.
This applies only to {{IF NOT EXISTS}} statements.
was:
As I understand the code, Impala performs HMS/Kudu {{CREATE TABLE}} interaction
as:
* Create the table in Kudu
* Register table with HMS
* Drop the Kudu table on HMS error
This is generally OK, except that it drops the table from Kudu on a
{{TableAlreadyExists}} Exception.
So, if I issue the same {{CREATE TABLE}} statement twice, the data will be
dropped from Kudu on the second execution.
> Do Not Drop Kudu Table When Table Already Exists in HMS
> -------------------------------------------------------
>
> Key: IMPALA-10710
> URL: https://issues.apache.org/jira/browse/IMPALA-10710
> Project: IMPALA
> Issue Type: Bug
> Reporter: David Mollitor
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> As I understand the code, Impala performs HMS/Kudu {{CREATE TABLE}}
> interaction as:
> * Create the table in Kudu
> * Register table with HMS
> * Drop the Kudu table on HMS error
> This is generally OK, except that it drops the table from Kudu on a
> {{TableAlreadyExists}} Exception.
> So, if I issue the same {{CREATE TABLE}} statement twice, the data will be
> dropped from Kudu on the second execution.
> This applies only to {{IF NOT EXISTS}} statements.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]