for dynamic partitions the partition clause must look like
PARTITION(year, month, edate)
the actual expressions should be included in the select list. So in your
example the select list should look something like
SELECT sh.EVENT_TIME, sh.person_NAME, substring(event_time, 0, 4) as year,
On Wed, Apr 25, 2012 at 2:51 AM, Shin Chan <[EMAIL PROTECTED]> wrote:
> While using dynamic partitions can we do something like this
> FROM stage_customer sh
> INSERT OVERWRITE TABLE Fact_Customer
> SELECT sh.EVENT_TIME , sh.person_NAME;
> Basically I am trying to decide next partitions based on calculation by
> substring of field EVENT_TIME present in stage table , but its giving error
> Parse Error: line 3:16 cannot recognize input near 'substring' '('
> 'event_time' in constant
> Is it possible to do ?
> We cannot use functions to decide partitions ?