This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new e27f2d81f29 branch-3.1: [opt](auditlog) Use varchar(1024) for column
frontend_ip of audit log table #52762 (#52846)
e27f2d81f29 is described below
commit e27f2d81f2916d041294eaf6762600e5c43f5609
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jul 8 19:10:58 2025 +0800
branch-3.1: [opt](auditlog) Use varchar(1024) for column frontend_ip of
audit log table #52762 (#52846)
Cherry-picked from #52762
Co-authored-by: Gavin Chou <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/catalog/InternalSchema.java | 2 +-
regression-test/suites/manager/test_manager_interface_1.groovy | 2 +-
2 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 9940bedbe49..477aaf02d01 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
@@ -133,7 +133,7 @@ public class InternalSchema {
AUDIT_SCHEMA.add(new ColumnDef("user",
TypeDef.createVarchar(128), ColumnNullableType.NULLABLE));
AUDIT_SCHEMA.add(new ColumnDef("frontend_ip",
- TypeDef.createVarchar(128), ColumnNullableType.NULLABLE));
+ TypeDef.createVarchar(1024), ColumnNullableType.NULLABLE));
// default ctl and db
AUDIT_SCHEMA.add(new ColumnDef("catalog",
TypeDef.createVarchar(128), ColumnNullableType.NULLABLE));
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]