我已经定义了一个表:
create external table PageViews (Userid string, Page_View string)
partitioned by (ds string)
row format as delimited fields terminated by ','
stored as textfile location '/user/data';
Run Code Online (Sandbox Code Playgroud)
我不希望/ user/data目录中的所有文件都用作表的一部分.我有可能做到以下几点吗?
location 'user/data/*.csv'
Run Code Online (Sandbox Code Playgroud) 我在hive中创建了一个表作为托管表,但它应该是外部的,是否可以在不丢失数据的情况下更改表的表类型?