【发布时间】:2014-02-21 07:48:41
【问题描述】:
我在使用 hive 在大范围分区中选择数据时遇到了一些问题
这是我要执行的 HQL:
INSERT OVERWRITE TABLE summary_T partition(DateRange='20131222-20131228')
select col1, col2, col3 From RAW_TABLE
where cdate between '20131222' and '20131228'
and (trim(col1) IS NULL or trim(col1)='')
and length(col2)=12;
“cdate”是表RAW_TABLE的分区
但在给我工作 ID 后它卡住了
一旦我把它改成:
INSERT OVERWRITE TABLE summary_T partition(DateRange='20131222-20131228')
select col1, col2, col3 From RAW_TABLE
where cdate between '20131222' and '20131225'
and (trim(col1) IS NULL or trim(col1)='')
and length(col2)=12;
然后它开始工作
是否有任何解决方案可以帮助我执行第一个 HQL?
感谢您的帮助!
【问题讨论】:
标签: hadoop hql hive hadoop-partitioning