[ https://issues.apache.org/jira/browse/HIVE-21678?focusedWorklogId=237587&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-237587 ]
ASF GitHub Bot logged work on HIVE-21678: ----------------------------------------- Author: ASF GitHub Bot Created on: 06/May/19 03:01 Start Date: 06/May/19 03:01 Worklog Time Spent: 10m Work Description: maheshk114 commented on pull request #614: HIVE-21678 URL: https://github.com/apache/hive/pull/614#discussion_r281053245 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ########## @@ -7644,7 +7645,8 @@ protected Operator genFileSinkPlan(String dest, QB qb, Operator input) checkAcidConstraints(qb, tableDescriptor, null); } // isReplace = false in case concurrent operation is executed - ltd = new LoadTableDesc(queryTmpdir, tableDescriptor, dpCtx, acidOp, false, writeId); + ltd = new LoadTableDesc(queryTmpdir, tableDescriptor, dpCtx, acidOp, false, writeId, + true); Review comment: in this case write id is already passed, and the write id allocation does not check if the table is already present or not. Just uses the table name. So it may not be required to pass the flag. The write id should be populated correctly in load table desc. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 237587) Time Spent: 0.5h (was: 20m) > CTAS creating a partitioned table fails because of no writeId > ------------------------------------------------------------- > > Key: HIVE-21678 > URL: https://issues.apache.org/jira/browse/HIVE-21678 > Project: Hive > Issue Type: Sub-task > Components: HiveServer2, repl > Affects Versions: 4.0.0 > Reporter: Ashutosh Bapat > Assignee: Ashutosh Bapat > Priority: Major > Labels: pull-request-available > Attachments: HIVE-21678.01.patch, HIVE-21678.02.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > > create table t1(a int, b int); > insert into t1 values (1, 2), (3, 4); > create table t6_part partitioned by (a) stored as orc tblproperties > ("transactional"="true") as select * from t1; > ERROR : FAILED: Execution Error, return code 1 from > org.apache.hadoop.hive.ql.exec.MoveTask. MoveTask : Write id is not set in > the config by open txn task for migration > Error: Error while processing statement: FAILED: Execution Error, return code > 1 from org.apache.hadoop.hive.ql.exec.MoveTask. MoveTask : Write id is not > set in the config by open txn task for migration (state=08S01,code=1) -- This message was sent by Atlassian JIRA (v7.6.3#76005)