ghkang98 commented on code in PR #36289:
URL: https://github.com/apache/doris/pull/36289#discussion_r1642054993


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/IcebergInsertExecutor.java:
##########
@@ -51,21 +52,27 @@ public void setCollectCommitInfoFunc() {
         
coordinator.setIcebergCommitDataFunc(transaction::updateIcebergCommitData);
     }
 
+    @Override
+    protected void beforeExec() {
+        String dbName = ((IcebergExternalTable) table).getDbName();
+        String tbName = table.getName();
+        SimpleTableInfo tableInfo = new SimpleTableInfo(dbName, tbName);
+        IcebergTransaction transaction = (IcebergTransaction) 
transactionManager.getTransaction(txnId);
+        transaction.pendingCommit(tableInfo);
+    }
+
     @Override
     protected void doBeforeCommit() throws UserException {
+        String dbName = ((IcebergExternalTable) table).getDbName();
+        String tbName = table.getName();
+        SimpleTableInfo tableInfo = new SimpleTableInfo(dbName, tbName);
         IcebergTransaction transaction = (IcebergTransaction) 
transactionManager.getTransaction(txnId);
-        loadedRows = transaction.getUpdateCnt();

Review Comment:
   OK I will increase the count stat



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to