[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 |
| 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.
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.
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 |
|
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