Skip to content

Commit

Permalink
[Test](bloom filter) add retry query for bloom filter test case
Browse files Browse the repository at this point in the history
  • Loading branch information
airborne12 committed Oct 30, 2024
1 parent 051128f commit dbc1617
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ suite("test_bloom_filter_hit_with_renamed_column") {

sql """ SET enable_profile = true """
sql """ set parallel_scan_min_rows_per_scanner = 2097152; """
sql """ select C_COMMENT_NEW from ${tableName} where C_COMMENT_NEW='OK' """
//sql """ select C_COMMENT_NEW from ${tableName} where C_COMMENT_NEW='OK' """

// get and check profile with retry logic
def getProfileIdWithRetry = { query, maxRetries, waitSeconds ->
Expand All @@ -122,6 +122,7 @@ suite("test_bloom_filter_hit_with_renamed_column") {
int attempt = 0

while (attempt < maxRetries) {
sql """ ${query} """
profiles = httpGet(profileUrl)
log.info("profiles attempt ${attempt + 1}: {}", profiles)
if (profiles == null) {
Expand Down

0 comments on commit dbc1617

Please sign in to comment.