This is an automated email from the ASF dual-hosted git repository.
jianliangqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new d2531db1cf [fix](inverted index) fix regression case
test_index_change_7 occasional failure (#22066)
d2531db1cf is described below
commit d2531db1cfea319cd0cc3657bac904516bd0bf61
Author: YueW <[email protected]>
AuthorDate: Mon Jul 24 15:39:08 2023 +0800
[fix](inverted index) fix regression case test_index_change_7 occasional
failure (#22066)
---
be/src/vec/functions/match.h | 10 ++++-----
.../index_change/test_index_change_7.groovy | 25 +++++++++++++---------
2 files changed, 20 insertions(+), 15 deletions(-)
diff --git a/be/src/vec/functions/match.h b/be/src/vec/functions/match.h
index 2e1e2d78ae..8f66f7866d 100644
--- a/be/src/vec/functions/match.h
+++ b/be/src/vec/functions/match.h
@@ -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; }
diff --git
a/regression-test/suites/inverted_index_p0/index_change/test_index_change_7.groovy
b/regression-test/suites/inverted_index_p0/index_change/test_index_change_7.groovy
index f26cf6792f..b1cbe7080b 100644
---
a/regression-test/suites/inverted_index_p0/index_change/test_index_change_7.groovy
+++
b/regression-test/suites/inverted_index_p0/index_change/test_index_change_7.groovy
@@ -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)
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]