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


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/materialized/alter/rebuild/AlterMaterializedViewRebuildAnalyzer.java:
##########
@@ -213,6 +213,9 @@ private ASTNode getRewrittenAST(TableName tableName) throws 
SemanticException {
         HiveTxnManager txnManager = getTxnMgr();
         LockState state;
         try {
+          // trigger txn id generation
+          queryState.getValidTxnList();

Review Comment:
   we probably do not need valdTxnList here, maybe simple
   ````
   txnManager.openTxn(ctx, queryState.getConf().getUser() / 
SessionState.get().getUserName())
   ````
   would work as well



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