[ 
https://issues.apache.org/jira/browse/HIVE-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phabricator updated HIVE-2617:
------------------------------

    Attachment: HIVE-2617.D843.1.patch

njain requested code review of "HIVE-2617 [jira] Insert overwrite table 
db.tname fails if partition already exists".
Reviewers: JIRA

  HIVE-2617

  Insert Overwrite table db.tname fails if partition already exists.
  For example-
  insert overwrite table db.tname PARTITION(part='p') select .. from t2 where 
part='p'; fails if partition 'p' already exists. Workaround is - use db; and 
the fire the command.
  From the source code-
  alterPartition(tbl.getTableName(), new Partition(tbl, tpart)); takes String 
tablename as argument and loses db information. Table table = 
newTable(tablename) is called to retrieve table from name. But, it relies on 
currentDatabase value (hence the workaround).

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D843

AFFECTED FILES
  ql/src/test/results/clientpositive/insert2_overwrite_partitions.q.out
  ql/src/test/queries/clientpositive/insert2_overwrite_partitions.q
  ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/1803/

Tip: use the X-Herald-Rules header to filter Herald messages in your client.

                
> Insert overwrite table db.tname fails if partition already exists 
> ------------------------------------------------------------------
>
>                 Key: HIVE-2617
>                 URL: https://issues.apache.org/jira/browse/HIVE-2617
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Aniket Mokashi
>            Assignee: Chinna Rao Lalam
>         Attachments: HIVE-2617.D843.1.patch, HIVE-2617.patch
>
>
> Insert Overwrite table db.tname fails if partition already exists.
> For example-
> insert overwrite table db.tname PARTITION(part='p') select .. from t2 where 
> part='p'; fails if partition 'p' already exists. Workaround is - use db; and 
> the fire the command.
> From the source code-
> alterPartition(tbl.getTableName(), new Partition(tbl, tpart)); takes String 
> tablename as argument and loses db information. Table table = 
> newTable(tablename) is called to retrieve table from name. But, it relies on 
> currentDatabase value (hence the workaround).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to