[ https://issues.apache.org/jira/browse/HIVE-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159833#comment-13159833 ]
jirapos...@reviews.apache.org commented on HIVE-2602: ----------------------------------------------------- ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/2974/ ----------------------------------------------------------- Review request for hive and namit jain. Summary ------- INSERT OVERWRITE TABLE X PARTITION (a=b, c=d) IF NOT EXISTS ... The partition should be created and written if and only if it's not there already. Added a check to validate the partition exist or not. This addresses bug HIVE-2602. https://issues.apache.org/jira/browse/HIVE-2602 Diffs ----- trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g 1206077 trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 1206077 trunk/ql/src/test/queries/clientpositive/insert1_overwrite_partitions.q PRE-CREATION trunk/ql/src/test/results/clientpositive/insert1_overwrite_partitions.q.out PRE-CREATION Diff: https://reviews.apache.org/r/2974/diff Testing ------- all tests passed and added new testcases Thanks, chinna > add support for insert partition overwrite(...) if not exists > ------------------------------------------------------------- > > Key: HIVE-2602 > URL: https://issues.apache.org/jira/browse/HIVE-2602 > Project: Hive > Issue Type: New Feature > Reporter: Namit Jain > Assignee: Chinna Rao Lalam > Attachments: HIVE-2602.patch > > > INSERT OVERWRITE TABLE X PARTITION (a=b, c=d) IF NOT EXISTS ... > The partition should be created and written if and only if it's not there > already. > The support can be added for dynamic partitions in the future, but this jira > is for adding this support for static partitions. -- 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