Skip to content

Commit

Permalink
[Test](index) fix the index property inconsistency for check_before_q…
Browse files Browse the repository at this point in the history
…uit (apache#46854)
  • Loading branch information
wyxxxcat authored Jan 13, 2025
1 parent dc5e0b3 commit d82c614
Show file tree
Hide file tree
Showing 44 changed files with 86 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ suite("test_binlog_config_change_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -76,7 +76,7 @@ suite("test_binlog_config_change_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -94,7 +94,7 @@ suite("test_binlog_config_change_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand All @@ -115,7 +115,7 @@ suite("test_binlog_config_change_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ suite("test_get_binlog_case_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -75,7 +75,7 @@ suite("test_get_binlog_case_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -93,7 +93,7 @@ suite("test_get_binlog_case_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand All @@ -114,7 +114,7 @@ suite("test_get_binlog_case_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down Expand Up @@ -216,7 +216,7 @@ suite("test_get_binlog_case_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ suite("test_ingest_binlog_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -77,7 +77,7 @@ suite("test_ingest_binlog_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -95,7 +95,7 @@ suite("test_ingest_binlog_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand All @@ -116,7 +116,7 @@ suite("test_ingest_binlog_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ suite("test_multi_buckets_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -76,7 +76,7 @@ suite("test_multi_buckets_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -94,7 +94,7 @@ suite("test_multi_buckets_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand All @@ -115,7 +115,7 @@ suite("test_multi_buckets_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ suite("test_backup_restore_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -80,7 +80,7 @@ suite("test_backup_restore_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -102,7 +102,7 @@ suite("test_backup_restore_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand All @@ -123,7 +123,7 @@ suite("test_backup_restore_index") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down
6 changes: 3 additions & 3 deletions regression-test/suites/datatype_p0/scalar_types/load.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ suite("test_scalar_types_load", "p0") {
INDEX idx_c_datetimev2 (c_datetimev2) USING INVERTED,
INDEX idx_c_char (c_char) USING INVERTED,
INDEX idx_c_varchar (c_varchar) USING INVERTED,
INDEX idx_c_string (c_string) USING INVERTED PROPERTIES("parser"="english")
INDEX idx_c_string (c_string) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true")
) ENGINE=OLAP
DUPLICATE KEY(`k1`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -443,7 +443,7 @@ suite("test_scalar_types_load", "p0") {
INDEX idx_c_datetimev2 (c_datetimev2) USING INVERTED,
INDEX idx_c_char (c_char) USING INVERTED,
INDEX idx_c_varchar (c_varchar) USING INVERTED,
INDEX idx_c_string (c_string) USING INVERTED PROPERTIES("parser"="english")
INDEX idx_c_string (c_string) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true")
) ENGINE=OLAP
DUPLICATE KEY(`k1`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -491,7 +491,7 @@ suite("test_scalar_types_load", "p0") {
INDEX idx_c_datetimev2 (c_datetimev2) USING INVERTED,
INDEX idx_c_char (c_char) USING INVERTED,
INDEX idx_c_varchar (c_varchar) USING INVERTED,
INDEX idx_c_string (c_string) USING INVERTED PROPERTIES("parser"="english")
INDEX idx_c_string (c_string) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true")
) ENGINE=OLAP
UNIQUE KEY(`c_datetimev2`, `c_bigint`, `c_decimalv3`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ suite("test_index_bkd_writer_fault_injection", "nonConcurrent") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ suite("test_index_compaction_failure_injection", "nonConcurrent") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
DUPLICATE KEY(`id`)
Expand All @@ -332,7 +332,7 @@ suite("test_index_compaction_failure_injection", "nonConcurrent") {
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ suite("test_index_compound_directory_fault_injection", "nonConcurrent") {
INDEX size_idx (`size`) USING INVERTED COMMENT '',
INDEX status_idx (`status`) USING INVERTED COMMENT '',
INDEX clientip_idx (`clientip`) USING INVERTED COMMENT '',
INDEX request_idx (`request`) USING INVERTED PROPERTIES("parser"="english") COMMENT ''
INDEX request_idx (`request`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") COMMENT ''
) ENGINE=OLAP
DUPLICATE KEY(`@timestamp`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ suite("test_index_failure_injection", "nonConcurrent") {
INDEX size_idx (`size`) USING INVERTED COMMENT '',
INDEX status_idx (`status`) USING INVERTED COMMENT '',
INDEX clientip_idx (`clientip`) USING INVERTED COMMENT '',
INDEX request_idx (`request`) USING INVERTED PROPERTIES("parser"="english") COMMENT ''
INDEX request_idx (`request`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") COMMENT ''
) ENGINE=OLAP
DUPLICATE KEY(`@timestamp`)
COMMENT 'OLAP'
Expand Down Expand Up @@ -68,7 +68,7 @@ suite("test_index_failure_injection", "nonConcurrent") {
INDEX size_idx (`size`) USING INVERTED COMMENT '',
INDEX status_idx (`status`) USING INVERTED COMMENT '',
INDEX clientip_idx (`clientip`) USING INVERTED COMMENT '',
INDEX request_idx (`request`) USING INVERTED PROPERTIES("parser"="english") COMMENT ''
INDEX request_idx (`request`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") COMMENT ''
) ENGINE=OLAP
UNIQUE KEY(`@timestamp`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ suite("test_index_compaction_unique_keys_arr", "array_contains_inverted_index, n
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand All @@ -212,7 +212,7 @@ suite("test_index_compaction_unique_keys_arr", "array_contains_inverted_index, n
`hobbies` text NULL,
`score` int(11) NULL,
index index_name (name) using inverted,
index index_hobbies (hobbies) using inverted properties("parser"="english"),
index index_hobbies (hobbies) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true"),
index index_score (score) using inverted
) ENGINE=OLAP
UNIQUE KEY(`id`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ suite("test_index_change_1") {
// create inverted index
sql """ CREATE INDEX idx_user_id ON ${tableName}(`user_id`) USING INVERTED """
wait_for_latest_op_on_table_finish(tableName, timeout)
sql """ CREATE INDEX idx_note ON ${tableName}(`note`) USING INVERTED PROPERTIES("parser"="english") """
sql """ CREATE INDEX idx_note ON ${tableName}(`note`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") """
wait_for_latest_op_on_table_finish(tableName, timeout)
sql """ CREATE INDEX idx_city ON ${tableName}(`city`) USING INVERTED PROPERTIES("parser"="english") """
sql """ CREATE INDEX idx_city ON ${tableName}(`city`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") """
wait_for_latest_op_on_table_finish(tableName, timeout)

// create bitmap index
Expand Down Expand Up @@ -148,9 +148,9 @@ suite("test_index_change_1") {
// create inverted index
sql """ CREATE INDEX idx_user_id ON ${tableName}(`user_id`) USING INVERTED """
wait_for_latest_op_on_table_finish(tableName, timeout)
sql """ CREATE INDEX idx_note ON ${tableName}(`note`) USING INVERTED PROPERTIES("parser"="english") """
sql """ CREATE INDEX idx_note ON ${tableName}(`note`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") """
wait_for_latest_op_on_table_finish(tableName, timeout)
sql """ CREATE INDEX idx_city ON ${tableName}(`city`) USING INVERTED PROPERTIES("parser"="english") """
sql """ CREATE INDEX idx_city ON ${tableName}(`city`) using inverted properties("support_phrase" = "true", "parser" = "english", "lower_case" = "true") """
wait_for_latest_op_on_table_finish(tableName, timeout)

// create bitmap index
Expand Down
Loading

0 comments on commit d82c614

Please sign in to comment.