I've came out some problem using hive to select data within large range partitions
Here's the HQL I want to execute:
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" is the partition of table RAW_TABLE
but it stucks after giving me the job id
Once I change it into:
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;
then it starts work
Is there any solution that can help me execute the first HQL?
thanks for helping!