[ https://issues.apache.org/jira/browse/HIVE-21118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16750636#comment-16750636 ]
Eugene Koifman commented on HIVE-21118: --------------------------------------- The current model in Acid subsystem is that there is 1 writeId per (table,txnid). {{DbTxnManager.getTableWriteId()}} ensures this but perhaps it should also be checked on {{TxnHandler}} side There is also a concept of statement id, so that if there is > 1 write from a single txn to the same table, each write creates a new delta with a different statement id: delta_writeId_writeId_stmtId. This is visible in multi-statement transactions (not fully supported yet but there are some tests in TestTxnCommands) and multi-insert statement (especially one that is generated to execute Merge statement) > Make sure if dynamic partitions is true only there's only one writeId > allocated > ------------------------------------------------------------------------------- > > Key: HIVE-21118 > URL: https://issues.apache.org/jira/browse/HIVE-21118 > Project: Hive > Issue Type: Improvement > Components: Transactions > Reporter: Jaume M > Assignee: Jaume M > Priority: Critical > > See > https://issues.apache.org/jira/browse/HIVE-21052?focusedCommentId=16740528&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16740528 -- This message was sent by Atlassian JIRA (v7.6.3#76005)