[fix](inverted index) fix regression case test_index_change_7 occasional failure (#22066)
This commit is contained in:
@ -129,7 +129,7 @@ public:
|
||||
class FunctionMatchElementEQ : public FunctionMatchBase {
|
||||
public:
|
||||
static constexpr auto name = "match_element_eq";
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchPhrase>(); }
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchElementEQ>(); }
|
||||
|
||||
String get_name() const override { return name; }
|
||||
|
||||
@ -146,7 +146,7 @@ public:
|
||||
class FunctionMatchElementLT : public FunctionMatchBase {
|
||||
public:
|
||||
static constexpr auto name = "match_element_lt";
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchPhrase>(); }
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchElementLT>(); }
|
||||
|
||||
String get_name() const override { return name; }
|
||||
|
||||
@ -163,7 +163,7 @@ public:
|
||||
class FunctionMatchElementGT : public FunctionMatchBase {
|
||||
public:
|
||||
static constexpr auto name = "match_element_gt";
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchPhrase>(); }
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchElementGT>(); }
|
||||
|
||||
String get_name() const override { return name; }
|
||||
|
||||
@ -180,7 +180,7 @@ public:
|
||||
class FunctionMatchElementLE : public FunctionMatchBase {
|
||||
public:
|
||||
static constexpr auto name = "match_element_le";
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchPhrase>(); }
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchElementLE>(); }
|
||||
|
||||
String get_name() const override { return name; }
|
||||
|
||||
@ -197,7 +197,7 @@ public:
|
||||
class FunctionMatchElementGE : public FunctionMatchBase {
|
||||
public:
|
||||
static constexpr auto name = "match_element_ge";
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchPhrase>(); }
|
||||
static FunctionPtr create() { return std::make_shared<FunctionMatchElementGE>(); }
|
||||
|
||||
String get_name() const override { return name; }
|
||||
|
||||
|
||||
@ -105,14 +105,19 @@ suite("test_index_change_7") {
|
||||
qt_select17 """ SELECT * FROM ${tableName} t WHERE c_array MATCH 'love' ORDER BY id; """
|
||||
qt_select18 """ SELECT * FROM ${tableName} t WHERE c_array MATCH 'north' ORDER BY id; """
|
||||
qt_select19 """ SELECT * FROM ${tableName} t WHERE c_array MATCH 'korea' ORDER BY id; """
|
||||
qt_select20 """ SELECT * FROM ${tableName} t WHERE int_array element_ge 40 ORDER BY id; """
|
||||
qt_select21 """ SELECT * FROM ${tableName} t WHERE int_array element_le 40 ORDER BY id; """
|
||||
qt_select22 """ SELECT * FROM ${tableName} t WHERE int_array element_gt 40 ORDER BY id; """
|
||||
qt_select23 """ SELECT * FROM ${tableName} t WHERE int_array element_lt 40 ORDER BY id; """
|
||||
qt_select24 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 10 ORDER BY id; """
|
||||
qt_select25 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 20 ORDER BY id; """
|
||||
qt_select26 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 30 ORDER BY id; """
|
||||
qt_select27 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 40 ORDER BY id; """
|
||||
qt_select28 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 50 ORDER BY id; """
|
||||
qt_select29 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 60 ORDER BY id; """
|
||||
|
||||
try {
|
||||
qt_select20 """ SELECT * FROM ${tableName} t WHERE int_array element_ge 40 ORDER BY id; """
|
||||
qt_select21 """ SELECT * FROM ${tableName} t WHERE int_array element_le 40 ORDER BY id; """
|
||||
qt_select22 """ SELECT * FROM ${tableName} t WHERE int_array element_gt 40 ORDER BY id; """
|
||||
qt_select23 """ SELECT * FROM ${tableName} t WHERE int_array element_lt 40 ORDER BY id; """
|
||||
qt_select24 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 10 ORDER BY id; """
|
||||
qt_select25 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 20 ORDER BY id; """
|
||||
qt_select26 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 30 ORDER BY id; """
|
||||
qt_select27 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 40 ORDER BY id; """
|
||||
qt_select28 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 50 ORDER BY id; """
|
||||
qt_select29 """ SELECT * FROM ${tableName} t WHERE int_array element_eq 60 ORDER BY id; """
|
||||
} catch(Exception ex) {
|
||||
logger.info("execute array element query failed when build index not finished, result: " + ex)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user