deniskuzZ commented on code in PR #3214:
URL: https://github.com/apache/hive/pull/3214#discussion_r890202337


##########
standalone-metastore/metastore-server/src/main/sql/derby/hive-schema-4.0.0-alpha-2.derby.sql:
##########
@@ -558,7 +558,8 @@ CREATE TABLE TXN_COMPONENTS (
   TC_TABLE varchar(256),
   TC_PARTITION varchar(767),
   TC_OPERATION_TYPE char(1) NOT NULL,
-  TC_WRITEID bigint
+  TC_WRITEID bigint,
+  TC_ID bigint PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY

Review Comment:
   TC_ID can't be a PRIMARY KEY as it's not unique. TXN_COMPONENTS might have a 
bunch of partitions updated/inserted in the same txn.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to