From c4c26cf287c346b9f9413191ac76d82018f5f31f Mon Sep 17 00:00:00 2001 From: w41ter Date: Mon, 17 Jun 2024 17:23:05 +0800 Subject: [PATCH] Fix bitmap index test for doris 2.0.11 --- regression-test/suites/table-sync/test_bitmap_index.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regression-test/suites/table-sync/test_bitmap_index.groovy b/regression-test/suites/table-sync/test_bitmap_index.groovy index d4c629ec..70f46f35 100644 --- a/regression-test/suites/table-sync/test_bitmap_index.groovy +++ b/regression-test/suites/table-sync/test_bitmap_index.groovy @@ -123,7 +123,8 @@ suite("test_bitmap_index") { assertTrue(checkRestoreFinishTimesOf("${tableName}", 30)) def checkBitmap = { inputRes -> Boolean for (List row : inputRes) { - if (row[2] == "idx_test" && row[10] == "BITMAP") { + // ATTN: The implementation of BITMAP index has already changed to INVERTED index in doris 2.0.11. + if (row[2] == "idx_test" && (row[10] == "BITMAP" || row[10] == "INVERTED")) { return true } } @@ -140,7 +141,8 @@ suite("test_bitmap_index") { sql """CREATE INDEX idx_id ON ${tableName} (`id`) USING BITMAP""" def checkBitmap2 = { inputRes -> Boolean for (List row : inputRes) { - if (row[2] == "idx_id" && row[10] == "BITMAP") { + // ATTN: The implementation of BITMAP index has already changed to INVERTED index in doris 2.0.11. + if (row[2] == "idx_id" && (row[10] == "BITMAP" || row[10] == "INVERTED")) { return true } }