hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Gates <>
Subject Re: Difference between MANAGED_TABLE and EXTERNAL_TABLE in org.apache.hadoop.hive.metastore.TableType
Date Thu, 01 Dec 2016 17:53:57 GMT
Hive does not assume that it owns the data for an external table.  Thus when an external table
is dropped, the data is not deleted.  People often use this as a way to load data into a directory
in HDFS and then “cast” a table structure over it by creating an external table with that
directory as its location.


> On Dec 1, 2016, at 06:15, Huang Meilong <> wrote:
> Hi all,
> I found an enum TableType in package org.apache.hadoop.hive.metastore. What's the difference
> Will the table be an EXTERNAL TABLE with setting table type EXTERNAL_TABLE when creating
> I found the code to determine whether a table is an external table in
> I'm confused what is EXTERNAL_TABLE in TableType for?

View raw message