External tables in hive cannot be deleted. Then how can we overwrite it?
Is overwrting hive tables possible , when we cant drop them?
External tables in hive cannot be deleted. Then how can we overwrite it?
Is overwrting hive tables possible , when we cant drop them?
Copyright © 2021 Jogjafile Inc.
Of course its possible.
Pls note
externaltables are actually hdfs tables but not owned or managed by hive. Hive metastore stores only the schema metadata of the external table. Hive does not manage, or restrict access, to the actual external data. So, you can overwrite it but you're not the owner of the table. Even if you drop the table using hive, only metadata gets removed and physical data exists in external storage.Below pic will give you more idea about how hive handles external tables. pic