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

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 36ea0a51553 [opt](auditlog) Use varchar(1024) for column frontend_ip 
of audit log table #52762 (#52984)
36ea0a51553 is described below

commit 36ea0a5155344f816079573e08bd6f21ddc92d6b
Author: Gavin Chou <[email protected]>
AuthorDate: Wed Jul 9 14:54:14 2025 +0800

    [opt](auditlog) Use varchar(1024) for column frontend_ip of audit log table 
#52762 (#52984)
    
    pick #52762
---
 .../java/org/apache/doris/catalog/InternalSchema.java |   2 +-
 .../data/audit/test_audit_log_behavior.out            | Bin 1231 -> 1232 bytes
 .../suites/manager/test_manager_interface_1.groovy    |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/catalog/InternalSchema.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/InternalSchema.java
index a571334660a..6ae362012f0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/InternalSchema.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/InternalSchema.java
@@ -156,7 +156,7 @@ public class InternalSchema {
         AUDIT_SCHEMA.add(new ColumnDef("is_query", 
TypeDef.create(PrimitiveType.TINYINT), ColumnNullableType.NULLABLE));
         AUDIT_SCHEMA.add(
                 new ColumnDef("is_nereids", 
TypeDef.create(PrimitiveType.TINYINT), ColumnNullableType.NULLABLE));
-        AUDIT_SCHEMA.add(new ColumnDef("frontend_ip", 
TypeDef.createVarchar(128), ColumnNullableType.NULLABLE));
+        AUDIT_SCHEMA.add(new ColumnDef("frontend_ip", 
TypeDef.createVarchar(1024), ColumnNullableType.NULLABLE));
         AUDIT_SCHEMA
                 .add(new ColumnDef("cpu_time_ms", 
TypeDef.create(PrimitiveType.BIGINT), ColumnNullableType.NULLABLE));
         AUDIT_SCHEMA.add(new ColumnDef("sql_hash", TypeDef.createVarchar(128), 
ColumnNullableType.NULLABLE));
diff --git a/regression-test/data/audit/test_audit_log_behavior.out 
b/regression-test/data/audit/test_audit_log_behavior.out
index 904fa6299e3..7c0d0e3026d 100644
Binary files a/regression-test/data/audit/test_audit_log_behavior.out and 
b/regression-test/data/audit/test_audit_log_behavior.out differ
diff --git a/regression-test/suites/manager/test_manager_interface_1.groovy 
b/regression-test/suites/manager/test_manager_interface_1.groovy
index ec57261b147..929d3b33db4 100644
--- a/regression-test/suites/manager/test_manager_interface_1.groovy
+++ b/regression-test/suites/manager/test_manager_interface_1.groovy
@@ -568,7 +568,7 @@ suite('test_manager_interface_1',"p0") {
         assertTrue(result[0][1].contains("`return_rows` bigint NULL,")) 
         assertTrue(result[0][1].contains("`stmt_id` bigint NULL,"))
         assertTrue(result[0][1].contains("`is_query` tinyint NULL,"))
-        assertTrue(result[0][1].contains("`frontend_ip` varchar(128) NULL,"))
+        assertTrue(result[0][1].contains("`frontend_ip` varchar(1024) NULL,"))
         assertTrue(result[0][1].contains("`cpu_time_ms` bigint NULL,"))
         assertTrue(result[0][1].contains("`sql_hash` varchar(128) NULL,"))
         assertTrue(result[0][1].contains("`sql_digest` varchar(128) NULL,"))


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

Reply via email to