Skip to content

Commit

Permalink
[fix][queryStat] Fields that are inconsistent between the table Filed…
Browse files Browse the repository at this point in the history
… and DO (#1986)
  • Loading branch information
whutpencil authored Dec 28, 2024
1 parent 683f01c commit 6f5e477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions headless/server/src/main/resources/mapper/StatMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<result column="trace_id" property="traceId"/>
<result column="model_id" property="modelId"/>
<result column="data_set_id" property="dataSetId"/>
<result column="user" property="queryUser"/>
<result column="query_user" property="queryUser"/>
<result column="created_at" property="createdAt"/>
<result column="query_type" property="queryType"/>
<result column="query_type_back" property="queryTypeBack"/>
<result column="query_sql_cmd" property="querySqlCmd"/>
<result column="sql_cmd_md5" property="querySqlCmdMd5"/>
<result column="query_struct_cmd" property="queryStructCmd"/>
<result column="struct_cmd_md5" property="queryStructCmdMd5"/>
<result column="sql" property="sql"/>
<result column="query_sql" property="querySql"/>
<result column="sql_md5" property="sqlMd5"/>
<result column="query_engine" property="queryEngine"/>
<result column="elapsed_ms" property="elapsedMs"/>
Expand Down

0 comments on commit 6f5e477

Please sign in to comment.