Skip to content

Commit 92b1b74

Browse files
committed
fix: shards table dissapeared (#2072)
1 parent 1521580 commit 92b1b74

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/store/reducers/shardsWorkload/shardsWorkload.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function createShardQueryHistorical(
4242
filters?: ShardsWorkloadFilters,
4343
sortOrder?: SortOrder[],
4444
) {
45-
const pathSelect = `CAST(SUBSTRING(CAST(Path AS String), ${database.length}) AS Utf8) AS Path`;
45+
const pathSelect = `CAST(SUBSTRING(CAST(Path AS String), ${database.length}) AS Utf8) AS RelativePath`;
4646

4747
let where = `Path='${path}' OR Path LIKE '${path}/%'`;
4848

@@ -56,13 +56,7 @@ function createShardQueryHistorical(
5656
return `${QUERY_TECHNICAL_MARK}
5757
SELECT
5858
${pathSelect},
59-
TabletId,
60-
CPUCores,
61-
DataSize,
62-
NodeId,
63-
PeakTime,
64-
InFlightTxCount,
65-
IntervalEnd
59+
\`.sys/top_partitions_one_hour\`.*
6660
FROM \`.sys/top_partitions_one_hour\`
6761
WHERE ${where}
6862
${orderBy}

0 commit comments

Comments
 (0)