[ 
https://issues.apache.org/jira/browse/HIVE-5122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766837#comment-13766837
 ] 

Thejas M Nair commented on HIVE-5122:
-------------------------------------

Just for the record, the AST for the plan without this fix clearly shows the 
problem (the location 'A' of first partition is associated with different 
partitions) - 
{code}
hive> explain ALTER TABLE add_part_test ADD IF NOT EXISTS           
    > PARTITION (ds='2010-01-01') location 'A'
    > PARTITION (ds='2010-02-01') location 'B'
    > PARTITION (ds='2010-03-01')
    > PARTITION (ds='2010-04-01') location 'C';
OK
ABSTRACT SYNTAX TREE:
  (TOK_ALTERTABLE_ADDPARTS add_part_test TOK_IFNOTEXISTS (TOK_PARTSPEC 
(TOK_PARTVAL ds '2010-01-01')) (TOK_PARTITIONLOCATION 'A') (TOK_PARTSPEC 
(TOK_PARTVAL ds '2010-02-01')) (TOK_PARTITIONLOCATION 'A') (TOK_PARTSPEC 
(TOK_PARTVAL ds '2010-03-01')) (TOK_PARTITIONLOCATION 'A') (TOK_PARTSPEC 
(TOK_PARTVAL ds '2010-04-01')) (TOK_PARTITIONLOCATION 'A'))

STAGE DEPENDENCIES:
  Stage-0 is a root stage
  Stage-1 is a root stage
  Stage-2 is a root stage
  Stage-3 is a root stage

STAGE PLANS:
  Stage: Stage-0

  Stage: Stage-1

  Stage: Stage-2

  Stage: Stage-3


{code}
                
> Add partition for multiple partition ignores locations for non-first 
> partitions
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-5122
>                 URL: https://issues.apache.org/jira/browse/HIVE-5122
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-5122.D12411.1.patch, HIVE-5122.D12411.2.patch
>
>
> http://www.mail-archive.com/user@hive.apache.org/msg09151.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to