Skip to content

Commit

Permalink
[regression-test](fix) fix variant case bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shuke987 committed Jan 11, 2025
1 parent f618578 commit 0feb351
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ suite("test_show_nested_index_file_http_action_with_variant", "nonConcurrent,p0"
def tableName = "test_show_nested_index_file_http_action_with_variant_" + format

master_multi_sql """
DROP TABLE IF EXISTS ${tableName}";
DROP TABLE IF EXISTS ${tableName};
set disable_inverted_index_v1_for_variant = false;
CREATE TABLE IF NOT EXISTS ${tableName} (
k bigint,
Expand All @@ -74,7 +74,7 @@ suite("test_show_nested_index_file_http_action_with_variant", "nonConcurrent,p0"
DUPLICATE KEY(`k`)
DISTRIBUTED BY HASH(k) BUCKETS 1
properties("replication_num" = "1", "disable_auto_compaction" = "true", "inverted_index_storage_format" = "${format}");
set disable_inverted_index_v1_for_variant = true
set disable_inverted_index_v1_for_variant = true;
"""

load_json_data.call(tableName, """${getS3Url() + '/regression/gharchive.m/2015-01-01-0.json'}""")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ suite("regression_test_variant_github_events_p2", "nonConcurrent,p2"){
)
DUPLICATE KEY(`k`)
DISTRIBUTED BY HASH(k) BUCKETS 4
properties("replication_num" = "1", "disable_auto_compaction" = "false");
properties("replication_num" = "1", "disable_auto_compaction" = "false", "inverted_index_storage_format"= "v2");
"""
// 2015
load_json_data.call(table_name, """${getS3Url() + '/regression/gharchive.m/2015-01-01-0.json'}""")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ suite("regression_test_variant_github_events_p2", "nonConcurrent,p2"){

// build inverted index at middle of loading the data
// ADD INDEX
sql """ ALTER TABLE github_events ADD INDEX idx_var (`v`) USING INVERTED PROPERTIES("parser" = "english", "support_phrase" = "true", "inverted_index_storage_format"= "v2") """
sql """ ALTER TABLE github_events ADD INDEX idx_var (`v`) USING INVERTED PROPERTIES("parser" = "english", "support_phrase" = "true") """
wait_for_latest_op_on_table_finish("github_events", timeout)

// 2022
Expand Down

0 comments on commit 0feb351

Please sign in to comment.