Skip to content

Commit 99d9827

Browse files
committed
fix
1 parent 14d1b09 commit 99d9827

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

fe/fe-core/src/main/cup/sql_parser.cup

-2
Original file line numberDiff line numberDiff line change
@@ -8497,8 +8497,6 @@ keyword ::=
84978497
{: RESULT = id; :}
84988498
| KW_STOP:id
84998499
{: RESULT = id; :}
8500-
| KW_GROUP:id
8501-
{: RESULT = id; :}
85028500
| KW_GROUPING:id
85038501
{: RESULT = id; :}
85048502
| KW_GROUPS:id

fe/fe-core/src/main/java/org/apache/doris/analysis/ShowCacheHotSpotStmt.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
public class ShowCacheHotSpotStmt extends ShowStmt implements NotFallbackInParser {
4444
public static final ShowResultSetMetaData[] RESULT_SET_META_DATAS = {
4545
ShowResultSetMetaData.builder()
46-
.addColumn(new Column("cluster_id", ScalarType.createType(PrimitiveType.BIGINT)))
47-
.addColumn(new Column("cluster_name", ScalarType.createVarchar(128)))
46+
.addColumn(new Column("compute_group_id", ScalarType.createType(PrimitiveType.BIGINT)))
47+
.addColumn(new Column("compute_group_name", ScalarType.createVarchar(128)))
4848
.addColumn(new Column("table_id", ScalarType.createType(PrimitiveType.BIGINT)))
4949
.addColumn(new Column("table_name", ScalarType.createVarchar(128)))
5050
.build(),
@@ -129,7 +129,8 @@ private String generateQueryString() {
129129
+ "sum(query_per_week) as query_per_week_total "
130130
+ "FROM " + TABLE_NAME.toString()
131131
+ " group by cluster_id, cluster_name, table_id, table_name, insert_day) ");
132-
StringBuilder q2 = new StringBuilder("select cluster_id, cluster_name, "
132+
StringBuilder q2 = new StringBuilder("select cluster_id as compute_group_id, "
133+
+ "cluster_name as compute_group_name, "
133134
+ "table_id, table_name as hot_table_name from (select row_number() "
134135
+ "over (partition by cluster_id order by insert_day desc, "
135136
+ "query_per_day_total desc, query_per_week_total desc) as dr2, "

0 commit comments

Comments
 (0)