Skip to content

Commit 1c42594

Browse files
committed
fix: add region request support and correct sqlness
Signed-off-by: SNC123 <[email protected]>
1 parent bb0dad5 commit 1c42594

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/operator/src/request.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ impl Requester {
232232
let region_id = match req {
233233
RegionRequestBody::Flush(req) => req.region_id,
234234
RegionRequestBody::Compact(req) => req.region_id,
235+
RegionRequestBody::BuildIndex(req) => req.region_id,
235236
_ => {
236237
error!("Unsupported region request: {:?}", req);
237238
return UnsupportedRegionRequestSnafu {}.fail();

tests/cases/standalone/common/function/admin/build_index_table.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ADMIN FLUSH_TABLE('test');
3434
| 0 |
3535
+---------------------------+
3636

37+
-- SQLNESS SLEEP 1s
3738
-- No fulltext index yet
3839
SELECT index_size FROM INFORMATION_SCHEMA.REGION_STATISTICS;
3940

@@ -64,3 +65,4 @@ SELECT index_size FROM INFORMATION_SCHEMA.REGION_STATISTICS;
6465
+------------+
6566
| 318 |
6667
+------------+
68+

tests/cases/standalone/common/function/admin/build_index_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ SELECT * FROM test;
1414

1515
ADMIN FLUSH_TABLE('test');
1616

17+
-- SQLNESS SLEEP 1s
1718
-- No fulltext index yet
1819
SELECT index_size FROM INFORMATION_SCHEMA.REGION_STATISTICS;
1920

@@ -22,6 +23,5 @@ ALTER TABLE test MODIFY COLUMN msg SET FULLTEXT INDEX;
2223
ADMIN BUILD_INDEX('test');
2324

2425
-- SQLNESS SLEEP 1s
25-
2626
-- Fulltext index built
2727
SELECT index_size FROM INFORMATION_SCHEMA.REGION_STATISTICS;

0 commit comments

Comments
 (0)