[fix](case) Add sync to test case (#29034)

This commit is contained in:
zzzxl
2023-12-26 14:08:41 +08:00
committed by GitHub
parent c8ed14f11c
commit f7a624de38
3 changed files with 6 additions and 0 deletions

View File

@ -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; """

View File

@ -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%'; """

View File

@ -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\$'; """