[chore](persist) reduce truncate table operation log size #40422 (#40555)

cherry pick from #40422
This commit is contained in:
walter
2024-09-09 20:01:07 +08:00
committed by GitHub
parent f69063ea87
commit 68d1064aa9

View File

@ -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()
+ '}';
}
}