【发布时间】:2018-04-30 09:42:08
【问题描述】:
首先创建一个 hive 外部表:
create external table user_tables.test
(col1 string, col2 string)
partitioned by (date_partition date);
记录被插入:
INSERT INTO TABLE user_tables.test
PARTITION (date_partition='2017-11-16') VALUES ('abc', 'xyz'), ('abc1', 'xyz1');
现在,该表被删除并使用相同的脚本重新创建。 当我尝试-
SELECT * FROM user_tables.test WHERE date_partition='2017-11-16';`
我收到Done. 0 results.
【问题讨论】:
标签: hive create-table select-query external-tables