From 2f3da42710de2d57b93b878f6732a491345e5e0a Mon Sep 17 00:00:00 2001 From: zzzxl1993 <474696115@qq.com> Date: Tue, 26 Dec 2023 10:53:45 +0800 Subject: [PATCH] [fix](case) Add sync to test case --- .../suites/inverted_index_p0/test_count_on_index_2.groovy | 2 ++ .../inverted_index_p0/test_index_match_phrase_prefix.groovy | 2 ++ .../suites/inverted_index_p0/test_index_match_regexp.groovy | 2 ++ 3 files changed, 6 insertions(+) diff --git a/regression-test/suites/inverted_index_p0/test_count_on_index_2.groovy b/regression-test/suites/inverted_index_p0/test_count_on_index_2.groovy index 6866c81f964822..851c9120aa2037 100644 --- a/regression-test/suites/inverted_index_p0/test_count_on_index_2.groovy +++ b/regression-test/suites/inverted_index_p0/test_count_on_index_2.groovy @@ -152,6 +152,8 @@ suite("test_count_on_index_2", "p0"){ load_httplogs_data.call(indexTbName1, indexTbName1, 'true', 'json', 'documents-1000.json') load_httplogs_data.call(indexTbName2, indexTbName2, 'true', 'json', 'documents-1000.json') + sql 'sync' + qt_sql """ select count() from ${indexTbName1} where `@timestamp` >= 893964736 and `@timestamp` <= 893966453; """ qt_sql """ select count() from ${indexTbName2} where `@timestamp` >= 893964736 and `@timestamp` <= 893966453; """ diff --git a/regression-test/suites/inverted_index_p0/test_index_match_phrase_prefix.groovy b/regression-test/suites/inverted_index_p0/test_index_match_phrase_prefix.groovy index b23bc1b5a8b82a..fef9aa0bcb4c50 100644 --- a/regression-test/suites/inverted_index_p0/test_index_match_phrase_prefix.groovy +++ b/regression-test/suites/inverted_index_p0/test_index_match_phrase_prefix.groovy @@ -78,6 +78,8 @@ suite("test_index_match_phrase_prefix", "p0"){ try { load_httplogs_data.call(indexTbName1, 'test_index_match_phrase_prefix', 'true', 'json', 'documents-1000.json') + sql 'sync' + qt_sql """ select count() from test_index_match_phrase_prefix where request match_phrase_prefix 'ima'; """ qt_sql """ select count() from test_index_match_phrase_prefix where request like '%ima%'; """ diff --git a/regression-test/suites/inverted_index_p0/test_index_match_regexp.groovy b/regression-test/suites/inverted_index_p0/test_index_match_regexp.groovy index 4c1ee1a5b0b484..49156c223701e9 100644 --- a/regression-test/suites/inverted_index_p0/test_index_match_regexp.groovy +++ b/regression-test/suites/inverted_index_p0/test_index_match_regexp.groovy @@ -78,6 +78,8 @@ suite("test_index_match_regexp", "p0"){ try { load_httplogs_data.call(indexTbName1, 'test_index_match_regexp', 'true', 'json', 'documents-1000.json') + sql 'sync' + qt_sql """ select count() from test_index_match_regexp where request match_regexp '^h'; """ qt_sql """ select count() from test_index_match_regexp where request match_regexp '^team'; """ qt_sql """ select count() from test_index_match_regexp where request match_regexp 's\$'; """