This is an automated email from the ASF dual-hosted git repository.

gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d41b05a084 [chore](persist) reduce truncate table operation log size 
(#40422)
5d41b05a084 is described below

commit 5d41b05a084d93a4f5282eafdffe71494a5adb94
Author: walter <w41te...@gmail.com>
AuthorDate: Thu Sep 5 22:58:49 2024 +0800

    [chore](persist) reduce truncate table operation log size (#40422)
---
 .../java/org/apache/doris/persist/TruncateTableInfo.java     | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java 
b/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
index 50840cf56a6..a9a91f28839 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/TruncateTableInfo.java
@@ -51,7 +51,7 @@ public class TruncateTableInfo implements Writable {
     }
 
     public TruncateTableInfo(long dbId, String db, long tblId, String table, 
List<Partition> partitions,
-                             boolean isEntireTable, String rawSql) {
+            boolean isEntireTable, String rawSql) {
         this.dbId = dbId;
         this.db = db;
         this.tblId = tblId;
@@ -106,6 +106,14 @@ public class TruncateTableInfo implements Writable {
 
     @Override
     public String toString() {
-        return toJson();
+        return "TruncateTableInfo{"
+                + "dbId=" + dbId
+                + ", db='" + db + '\''
+                + ", tblId=" + tblId
+                + ", table='" + table + '\''
+                + ", isEntireTable=" + isEntireTable
+                + ", rawSql='" + rawSql + '\''
+                + ", partitions_size=" + partitions.size()
+                + '}';
     }
 }


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

Reply via email to