Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
airborne12 committed Jan 7, 2025
1 parent c8f6133 commit 10b8f76
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ suite("test_ngram_bloomfilter_index") {


sql "SET enable_function_pushdown = true"
sql "SET enable_fallback_to_original_planner = false"

qt_select_all_1 "SELECT * FROM ${tableName} ORDER BY key_id"
qt_select_eq_1 "SELECT * FROM ${tableName} WHERE http_url = '/%/7212503657802320699%' ORDER BY key_id"
Expand Down Expand Up @@ -81,7 +82,7 @@ suite("test_ngram_bloomfilter_index") {
DISTRIBUTED BY HASH(`key_id`) BUCKETS 3
PROPERTIES("replication_num" = "1");
"""
exception "java.sql.SQLException: errCode = 2, detailMessage = bf_size should be integer and between 64 and 65535"
exception "java.sql.SQLException: errCode = 2, detailMessage = invalid ngram bf index params:errCode = 2, detailMessage = 'bf_size' should be an integer between 64 and 65535."
}

def tableName3 = 'test_ngram_bloomfilter_index3'
Expand All @@ -104,10 +105,10 @@ suite("test_ngram_bloomfilter_index") {
"""
test {
sql """ALTER TABLE ${tableName3} ADD INDEX idx_http_url(http_url) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="65536") COMMENT 'http_url ngram_bf index'"""
exception "java.sql.SQLException: errCode = 2, detailMessage = bf_size should be integer and between 64 and 65535"
exception "java.sql.SQLException: errCode = 2, detailMessage = 'bf_size' should be an integer between 64 and 65535."
}
test {
sql """ALTER TABLE ${tableName3} ADD INDEX idx_http_url(http_url) USING NGRAM_BF PROPERTIES("gram_size"="256", "bf_size"="65535") COMMENT 'http_url ngram_bf index'"""
exception "java.sql.SQLException: errCode = 2, detailMessage = gram_size should be integer between 1 and 255."
exception "java.sql.SQLException: errCode = 2, detailMessage = 'gram_size' should be an integer between 1 and 255."
}
}

0 comments on commit 10b8f76

Please sign in to comment.