【发布时间】:2018-05-11 12:33:15
【问题描述】:
我在 Hive 中创建了一个分区视图,如下所示
create view if not exists view_name
PARTITIONED ON(date)
as
select col1,col2,date
from table1
union all
select col1,col2,date
from table2
基础表在“日期”列上进行分区。当我使用DESCRIBE FORMATTED VIEW_NAME 时,我可以看到分区信息为空,如屏幕截图所示。
enter image description here
如果我使用 SHOW CREATE TABLE View_Name,我会得到如下不带分区的视图定义
create view if not exists view_name
as
select col1,col2,date
from table1
union all
select col1,col2,date
from table2
请告诉我我错过了什么
【问题讨论】:
标签: hadoop hive hiveql cloudera hive-partitions