I have a hive table in XYZ
db named ABC
.
When I run describe formatted XYZ.ABC;
from hue, I get the following..
that is
Table Type: MANAGED_TABLE
Table Parameters: EXTERNAL True
So is this actually an external or a managed/internal hive table?
This is treated as an
EXTERNAL
table. Dropping table will keep the underlyingHDFS
data. The table type is being shown asMANAGED_TABLE
since the parameterEXTERNAL
is set toTrue
, instead ofTRUE
.To fix this metadata, you can run this query:
Some details:
The table
XYZ.ABC
must have been created via this kind of query:Describing this table will give:
Dropping this table will keep the data referenced in
Location
indescribe
output.The
Table Type
still shows asMANAGED_TABLE
which is confusing.Making the value for
EXTERNAL
asTRUE
will fix this.Now, doing a
describe
will show it as expected: