Skip to content

Commit

Permalink
[Regression](inverted index) fix build index case for cloud mode (apa…
Browse files Browse the repository at this point in the history
…che#37962)

## Proposed changes

Build index is not support in cloud mode.
Fix the cases.
  • Loading branch information
airborne12 authored Jul 17, 2024
1 parent 4000dec commit fceebf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ suite("test_add_drop_index_on_table_with_mv") {
assertEquals(show_result[0][2], "idx1")

// build index
sql """ BUILD INDEX idx1 ON ${tableName}; """

// wait for index build finish
wait_for_build_index_on_partition_finish(tableName, timeout)
if (!isCloudMode()) {
sql """ BUILD INDEX idx1 ON ${tableName}; """
// wait for index build finish
wait_for_build_index_on_partition_finish(tableName, timeout)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ suite("test_add_drop_index_repeatly"){
for (def i = 1; i <= 10; i++) {
// create index on table
sql """ create index idx_k2 on ${tbl}(k2) using inverted """
// build index
sql """ build index idx_k2 on ${tbl} """
def state = wait_for_last_build_index_on_table_finish(tbl, timeout)
assertEquals(state, "FINISHED")
if (!isCloudMode()) {
// build index
sql """ build index idx_k2 on ${tbl} """
def state = wait_for_last_build_index_on_table_finish(tbl, timeout)
assertEquals(state, "FINISHED")
}
sql """ drop index idx_k2 on ${tbl} """
}
}

0 comments on commit fceebf6

Please sign in to comment.