github-actions[bot] commented on code in PR #38300:
URL: https://github.com/apache/doris/pull/38300#discussion_r1701590030
##########
be/src/olap/comparison_predicate.h:
##########
@@ -246,14 +246,17 @@ class ComparisonPredicateBase : public ColumnPredicate {
template <bool is_and>
__attribute__((flatten)) void _evaluate_vec_internal(const
vectorized::IColumn& column,
Review Comment:
warning: function '_evaluate_vec_internal' has cognitive complexity of 60
(threshold 50) [readability-function-cognitive-complexity]
```cpp
__attribute__((flatten)) void _evaluate_vec_internal(const
vectorized::IColumn& column,
^
```
<details>
<summary>Additional context</summary>
**be/src/olap/comparison_predicate.h:250:** +1, including nesting penalty of
0, nesting level increased to 1
```cpp
if (_can_ignore()) {
^
```
**be/src/olap/comparison_predicate.h:251:** +2, including nesting penalty of
1, nesting level increased to 2
```cpp
if (is_and) {
^
```
**be/src/olap/comparison_predicate.h:252:** +3, including nesting penalty of
2, nesting level increased to 3
```cpp
for (uint16_t i = 0; i < size; i++) {
^
```
**be/src/olap/comparison_predicate.h:255:** +1, nesting level increased to 2
```cpp
} else {
^
```
**be/src/olap/comparison_predicate.h:261:** +1, including nesting penalty of
0, nesting level increased to 1
```cpp
if (column.is_nullable()) {
^
```
**be/src/olap/comparison_predicate.h:269:** +2, including nesting penalty of
1, nesting level increased to 2
```cpp
if (nested_column.is_column_dictionary()) {
^
```
**be/src/olap/comparison_predicate.h:270:** +3, including nesting penalty of
2, nesting level increased to 3
```cpp
if constexpr (std::is_same_v<T, StringRef>) {
^
```
**be/src/olap/comparison_predicate.h:276:** +4, including nesting penalty of
3, nesting level increased to 4
```cpp
do {
^
```
**be/src/olap/comparison_predicate.h:277:** +5, including nesting penalty of
4, nesting level increased to 5
```cpp
if constexpr (PT == PredicateType::EQ) {
^
```
**be/src/olap/comparison_predicate.h:278:** +6, including nesting penalty of
5, nesting level increased to 6
```cpp
if (dict_code == -2) {
^
```
**be/src/olap/comparison_predicate.h:288:** +1, nesting level increased to 3
```cpp
} else {
^
```
**be/src/olap/comparison_predicate.h:292:** +1, nesting level increased to 2
```cpp
} else {
^
```
**be/src/olap/comparison_predicate.h:302:** +1, nesting level increased to 1
```cpp
} else {
^
```
**be/src/olap/comparison_predicate.h:303:** +2, including nesting penalty of
1, nesting level increased to 2
```cpp
if (column.is_column_dictionary()) {
^
```
**be/src/olap/comparison_predicate.h:304:** +3, including nesting penalty of
2, nesting level increased to 3
```cpp
if constexpr (std::is_same_v<T, StringRef>) {
^
```
**be/src/olap/comparison_predicate.h:308:** +4, including nesting penalty of
3, nesting level increased to 4
```cpp
do {
^
```
**be/src/olap/comparison_predicate.h:309:** +5, including nesting penalty of
4, nesting level increased to 5
```cpp
if constexpr (PT == PredicateType::EQ) {
^
```
**be/src/olap/comparison_predicate.h:310:** +6, including nesting penalty of
5, nesting level increased to 6
```cpp
if (dict_code == -2) {
^
```
**be/src/olap/comparison_predicate.h:319:** +1, nesting level increased to 3
```cpp
} else {
^
```
**be/src/olap/comparison_predicate.h:323:** +1, nesting level increased to 2
```cpp
} else {
^
```
**be/src/olap/comparison_predicate.h:335:** +1, including nesting penalty of
0, nesting level increased to 1
```cpp
if (_opposite) {
^
```
**be/src/olap/comparison_predicate.h:336:** +2, including nesting penalty of
1, nesting level increased to 2
```cpp
for (uint16_t i = 0; i < size; i++) {
^
```
**be/src/olap/comparison_predicate.h:341:** +1, including nesting penalty of
0, nesting level increased to 1
```cpp
if (_can_ignore() && !_judge_counter) {
^
```
**be/src/olap/comparison_predicate.h:341:** +1
```cpp
if (_can_ignore() && !_judge_counter) {
^
```
**be/src/olap/comparison_predicate.h:342:** +2, including nesting penalty of
1, nesting level increased to 2
```cpp
for (uint16_t i = 0; i < size; i++) {
^
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]