Good that you know the reason for getting the error!
Having a partition defined on the integer value of dates doesn't seem logical to me. Normaly the tables are partitioned based on the intervals like MONTH or DAY, and it is always preferred to have the paritions that have data and avoid the empty partitions.
I think you should try to use RANGE_N and define the partitions on DAY or MONTH interval, and if you analyze the data properly, you won't have partitions more than 65K.
Create table T1(...)
PRIMARY INDEX (col1)
PARTITION BY( RANGE_N (col2 between '2012-01-01' and '2012-12-31' each interval '1' MONTH))
↧