Details
Description
Data loss when using "create external table like" statement.
1) Set up an external table S, point to location L. Populate data in S.
2) Create another external table T, using statement like this:
create external table T like S location L
Make sure table T point to the same location as the original table S.
3) Query table T, see the same set of data in S.
4) drop table T.
5) Query table S will return nothing, and location L is deleted.
Attachments
Attachments
Issue Links
- is related to
-
HIVE-1218 CREATE TABLE t LIKE some_view should create a new empty base table, but instead creates a copy of view
- Closed