I have been trying to drop a hive external table using the statement
alter table $tableName set tblproperties('EXTERNAL' = 'FALSE');
after I pass these properties and do a
DROP TABLE TABLENAME;
this command also drops the data from the other hive tables in that database.
Please can anyone suggest me why is it doing so? also if there is any way where we can only delete one external table which is mentioned without loosing the other data.
ALTER TABLE TABLENAME set tblproperties('EXTERNAL' = 'FALSE');
drop table tablename;