Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1.1
-
None
-
None
Description
when create a table CarbonCreateTableCommand will do twice catalog check, one is under CarbonCreateTableCommand file another is under CreateDataSourceTableCommand.
CreateDataSourceTableCommand may throw AnalysisException and CarbonCreateTableCommand will catch it.
if we have 2 command create the same table, something bad will happen.
create table A 1
A carbon check pass 1
create table A 2
A carbon check pass 2
A sparksql check pass 2
A sparksql check no pass 1
throw AnalysisException 1
delete table A folder 1
In this case, the following table A will be deleted.
if the create table use the location then the location will be delete.