Skip to content

Commit

Permalink
[fix](case) Add sync to test case (#29034)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzxl1993 authored Dec 26, 2023
1 parent c8ed14f commit f7a624d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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; """

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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%'; """

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\$'; """
Expand Down

0 comments on commit f7a624d

Please sign in to comment.