From 6f5e477e3c82daf64fb6ac847a95b352aae86522 Mon Sep 17 00:00:00 2001
From: HB <137497191@qq.com>
Date: Sat, 28 Dec 2024 15:15:06 +0800
Subject: [PATCH] [fix][queryStat] Fields that are inconsistent between the
table Filed and DO (#1986)
---
.../headless/server/persistence/dataobject/QueryStatDO.java | 4 +---
headless/server/src/main/resources/mapper/StatMapper.xml | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/headless/server/src/main/java/com/tencent/supersonic/headless/server/persistence/dataobject/QueryStatDO.java b/headless/server/src/main/java/com/tencent/supersonic/headless/server/persistence/dataobject/QueryStatDO.java
index 89c1a81134..5b5b911102 100644
--- a/headless/server/src/main/java/com/tencent/supersonic/headless/server/persistence/dataobject/QueryStatDO.java
+++ b/headless/server/src/main/java/com/tencent/supersonic/headless/server/persistence/dataobject/QueryStatDO.java
@@ -15,7 +15,6 @@ public class QueryStatDO {
private String traceId;
private Long modelId;
private Long dataSetId;
- @TableField("query_user")
private String queryUser;
private String createdAt;
/** corresponding type, such as sql, struct, etc */
@@ -28,8 +27,7 @@ public class QueryStatDO {
private String queryStructCmd;
@TableField("struct_cmd_md5")
private String queryStructCmdMd5;
- @TableField("query_sql")
- private String sql;
+ private String querySql;
private String sqlMd5;
private String queryEngine;
// private Long startTime;
diff --git a/headless/server/src/main/resources/mapper/StatMapper.xml b/headless/server/src/main/resources/mapper/StatMapper.xml
index 60851ede94..474082b5d2 100644
--- a/headless/server/src/main/resources/mapper/StatMapper.xml
+++ b/headless/server/src/main/resources/mapper/StatMapper.xml
@@ -10,7 +10,7 @@
-
+
@@ -18,7 +18,7 @@
-
+