-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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](function)support bit_test function #42099
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
block.get_by_position(arguments[0]).column.get()) || | ||
is_column_const(*block.get_by_position(arguments[0]).column)) { | ||
execute_inner<T>(block, arguments, result, input_rows_count); | ||
return true; |
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: redundant boolean literal in conditional return statement [readability-simplify-boolean-expr]
be/src/vec/functions/function_bit_test.cpp:53:
- if (auto col = check_and_get_column<ColumnVector<T>>(
- block.get_by_position(arguments[0]).column.get()) ||
- is_column_const(*block.get_by_position(arguments[0]).column)) {
- execute_inner<T>(block, arguments, result, input_rows_count);
- return true;
- }
- return false;
+ return auto col = check_and_get_column<ColumnVector<T>>(
+ block.get_by_position(arguments[0]).column.get()) ||
+ is_column_const(*block.get_by_position(arguments[0]).column);
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41475 ms
|
TPC-DS: Total hot run time: 193048 ms
|
ClickBench: Total hot run time: 33.55 s
|
for (int i = 0; i < input_rows_count; ++i) { | ||
auto first_value = first_column_data[index_check_const(i, is_consts[0])]; | ||
auto second_value = second_column_data[index_check_const(i, is_consts[1])]; | ||
res_data[i] = ((first_value >> second_value) & 1); |
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.
if second_value
is nagtive, It's a UB in CPP.
run buildall |
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41363 ms
|
TPC-DS: Total hot run time: 192227 ms
|
ClickBench: Total hot run time: 33.08 s
|
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
TPC-H: Total hot run time: 41132 ms
|
TPC-DS: Total hot run time: 191726 ms
|
ClickBench: Total hot run time: 32.45 s
|
TeamCity be ut coverage result: |
support bit_test function doc: apache/doris-website#1214
Proposed changes
support bit_test function
doc: apache/doris-website#1214