This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 6e12dc4b06b [opt](auditlog) Use varchar(1024) for column frontend_ip
of audit log table #52762 (#52985)
6e12dc4b06b is described below
commit 6e12dc4b06b41e36c6b7ec94f897759660af1d05
Author: Gavin Chou <[email protected]>
AuthorDate: Thu Jul 10 08:47:30 2025 +0800
[opt](auditlog) Use varchar(1024) for column frontend_ip of audit log table
#52762 (#52985)
pick #52762
---
.../java/org/apache/doris/catalog/InternalSchema.java | 2 +-
.../data/audit/test_audit_log_behavior.out | Bin 1154 -> 1155 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 cf827efbbdb..5d0c42f3335 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
@@ -91,7 +91,7 @@ public class InternalSchema {
AUDIT_SCHEMA.add(new ColumnDef("stmt_id",
TypeDef.create(PrimitiveType.BIGINT), true));
AUDIT_SCHEMA.add(new ColumnDef("is_query",
TypeDef.create(PrimitiveType.TINYINT), true));
AUDIT_SCHEMA.add(new ColumnDef("is_nereids",
TypeDef.create(PrimitiveType.TINYINT), true));
- AUDIT_SCHEMA.add(new ColumnDef("frontend_ip",
TypeDef.createVarchar(128), true));
+ AUDIT_SCHEMA.add(new ColumnDef("frontend_ip",
TypeDef.createVarchar(1024), true));
AUDIT_SCHEMA.add(new ColumnDef("cpu_time_ms",
TypeDef.create(PrimitiveType.BIGINT), true));
AUDIT_SCHEMA.add(new ColumnDef("sql_hash", TypeDef.createVarchar(128),
true));
AUDIT_SCHEMA.add(new ColumnDef("sql_digest",
TypeDef.createVarchar(128), true));
diff --git a/regression-test/data/audit/test_audit_log_behavior.out
b/regression-test/data/audit/test_audit_log_behavior.out
index c9c5b03df41..d49f0d2318b 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 494ec40908a..98718241b1c 100644
--- a/regression-test/suites/manager/test_manager_interface_1.groovy
+++ b/regression-test/suites/manager/test_manager_interface_1.groovy
@@ -562,7 +562,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]