-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature](inverted index) Add multi_match function (#37722) #38877
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
return Status::OK(); | ||
} | ||
|
||
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'eval_inverted_index' exceeds recommended size/complexity thresholds [readability-function-size]
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context,
^
Additional context
be/src/vec/functions/function_multi_match.cpp:94: 85 lines including whitespace and comments (threshold 80)
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context,
^
|
||
#pragma once | ||
|
||
#include <boost/algorithm/string/split.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'boost/algorithm/string/split.hpp' file not found [clang-diagnostic-error]
#include <boost/algorithm/string/split.hpp>
^
381c525
to
8d4a68f
Compare
run buildall |
TeamCity be ut coverage result: |
run buildall |
TeamCity be ut coverage result: |
3049aa9
to
ae15ddc
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
return Status::OK(); | ||
} | ||
|
||
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'eval_inverted_index' exceeds recommended size/complexity thresholds [readability-function-size]
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context,
^
Additional context
be/src/vec/functions/function_multi_match.cpp:98: 81 lines including whitespace and comments (threshold 80)
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context,
^
TeamCity be ut coverage result: |
ae15ddc
to
2c03796
Compare
run buildall |
TeamCity be ut coverage result: |
1. select * from tbl where multi_match(c1, 'c2, c3, c4', 'phrase_prefix', 'xxx'); 2. multi_match performs a match_phrase_prefix query on the columns specified in the first and second parameters. The value to be searched is specified in the fourth parameter.
… and v2 (apache#39149) ## Proposed changes 1. reversed Index v1 and v2 have different column names
87e7494
to
ff3378d
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
return Status::OK(); | ||
} | ||
|
||
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'eval_inverted_index' exceeds recommended size/complexity thresholds [readability-function-size]
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context,
^
Additional context
be/src/vec/functions/function_multi_match.cpp:98: 87 lines including whitespace and comments (threshold 80)
Status FunctionMultiMatch::eval_inverted_index(FunctionContext* context,
^
TeamCity be ut coverage result: |
#37722
#38931
#39149