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
EXTERNALtable. Dropping table will keep the underlyingHDFSdata. The table type is being shown asMANAGED_TABLEsince the parameterEXTERNALis set toTrue, instead ofTRUE.To fix this metadata, you can run this query:
Some details:
The table
XYZ.ABCmust have been created via this kind of query:Describing this table will give:
Dropping this table will keep the data referenced in
Locationindescribeoutput.The
Table Typestill shows asMANAGED_TABLEwhich is confusing.Making the value for
EXTERNALasTRUEwill fix this.Now, doing a
describewill show it as expected: