[ https://issues.apache.org/jira/browse/HIVE-3465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phabricator updated HIVE-3465: ------------------------------ Attachment: HIVE-3465.D5661.1.patch navis requested code review of "HIVE-3465 [jira] insert into statement overwrites if target table is prefixed with database name". Reviewers: JIRA DPAL-1903 insert into statement overwrites if target table is prefixed with database name insert into statement works as expected when the target table is not prefixed with database name. It does append correctly. However, if I specify a database name prefixing the target table, the statement just overwrites instead of appends: insert into table my_database.target select * from source; TEST PLAN EMPTY REVISION DETAIL https://reviews.facebook.net/D5661 AFFECTED FILES ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/QBParseInfo.java ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ql/src/test/queries/clientpositive/insert1.q ql/src/test/results/clientpositive/insert1.q.out MANAGE HERALD DIFFERENTIAL RULES https://reviews.facebook.net/herald/view/differential/ WHY DID I GET THIS EMAIL? https://reviews.facebook.net/herald/transcript/13293/ To: JIRA, navis > insert into statement overwrites if target table is prefixed with database > name > ------------------------------------------------------------------------------- > > Key: HIVE-3465 > URL: https://issues.apache.org/jira/browse/HIVE-3465 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.8.1 > Reporter: Kaufman Ng > Assignee: Navis > Attachments: HIVE-3465.1.patch.txt, HIVE-3465.D5661.1.patch > > > insert into statement works as expected when the target table is not prefixed > with database name. It does append correctly. > However, if I specify a database name prefixing the target table, the > statement just overwrites instead of appends: > insert into table my_database.target select * from source; -- 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