-
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
[fix](expr)Remove the _can_fast_execute flag from VExpr. (#45542) #45662
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 'execute' has cognitive complexity of 111 (threshold 50) [readability-function-cognitive-complexity]
Additional context
be/src/vec/exprs/vcompound_pred.h:152: +1, including nesting penalty of 0, nesting level increased to 1
if (fast_execute(context, block, result_column_id)) { ^
be/src/vec/exprs/vcompound_pred.h:155: +1, including nesting penalty of 0, nesting level increased to 1
be/src/vec/exprs/vcompound_pred.h:161: +1, including nesting penalty of 0, nesting level increased to 1
be/src/common/status.h:622: expanded from macro 'RETURN_IF_ERROR'
do { \ ^
be/src/vec/exprs/vcompound_pred.h:161: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:624: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \ ^
be/src/vec/exprs/vcompound_pred.h:173: +1, including nesting penalty of 0, nesting level increased to 1
if (lhs_is_nullable) { ^
be/src/vec/exprs/vcompound_pred.h:187: nesting level increased to 1
auto get_rhs_colum = [&]() { ^
be/src/vec/exprs/vcompound_pred.h:188: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/exprs/vcompound_pred.h:189: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:622: expanded from macro 'RETURN_IF_ERROR'
do { \ ^
be/src/vec/exprs/vcompound_pred.h:189: +4, including nesting penalty of 3, nesting level increased to 4
be/src/common/status.h:624: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \ ^
be/src/vec/exprs/vcompound_pred.h:199: +3, including nesting penalty of 2, nesting level increased to 3
if (rhs_is_nullable) { ^
be/src/vec/exprs/vcompound_pred.h:207: nesting level increased to 1
be/src/vec/exprs/vcompound_pred.h:208: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/exprs/vcompound_pred.h:208: +1
be/src/vec/exprs/vcompound_pred.h:217: nesting level increased to 1
auto create_null_map_column = [&](ColumnPtr& null_map_column, ^
be/src/vec/exprs/vcompound_pred.h:219: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/exprs/vcompound_pred.h:228: nesting level increased to 1
be/src/vec/exprs/vcompound_pred.h:238: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/exprs/vcompound_pred.h:239: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:244: +1, nesting level increased to 2
} else { ^
be/src/vec/exprs/vcompound_pred.h:245: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:258: +1, including nesting penalty of 0, nesting level increased to 1
if (_op == TExprOpcode::COMPOUND_AND) { ^
be/src/vec/exprs/vcompound_pred.h:261: +2, including nesting penalty of 1, nesting level increased to 2
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:261: +1
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:261: +1
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:261: +1
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:264: +1, nesting level increased to 2
} else { ^
be/src/vec/exprs/vcompound_pred.h:265: +3, including nesting penalty of 2, nesting level increased to 3
RETURN_IF_ERROR(get_rhs_colum()); ^
be/src/common/status.h:622: expanded from macro 'RETURN_IF_ERROR'
do { \ ^
be/src/vec/exprs/vcompound_pred.h:265: +4, including nesting penalty of 3, nesting level increased to 4
RETURN_IF_ERROR(get_rhs_colum()); ^
be/src/common/status.h:624: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \ ^
be/src/vec/exprs/vcompound_pred.h:267: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:267: +1
be/src/vec/exprs/vcompound_pred.h:267: +1
be/src/vec/exprs/vcompound_pred.h:268: +1
(lhs_all_true && lhs_all_is_not_null)) { //nullable column ^
be/src/vec/exprs/vcompound_pred.h:271: +1, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:271: +1
be/src/vec/exprs/vcompound_pred.h:271: +1
be/src/vec/exprs/vcompound_pred.h:272: +1
be/src/vec/exprs/vcompound_pred.h:275: +1, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:275: +1
be/src/vec/exprs/vcompound_pred.h:275: +1
be/src/vec/exprs/vcompound_pred.h:276: +1
be/src/vec/exprs/vcompound_pred.h:279: +1, nesting level increased to 3
} else { ^
be/src/vec/exprs/vcompound_pred.h:280: +4, including nesting penalty of 3, nesting level increased to 4
if (!result_is_nullable) { ^
be/src/vec/exprs/vcompound_pred.h:282: +5, including nesting penalty of 4, nesting level increased to 5
be/src/vec/exprs/vcompound_pred.h:285: +1, nesting level increased to 4
} else { ^
be/src/vec/exprs/vcompound_pred.h:290: +1, nesting level increased to 1
be/src/vec/exprs/vcompound_pred.h:293: +2, including nesting penalty of 1, nesting level increased to 2
if ((lhs_all_true && !lhs_is_nullable) || (lhs_all_true && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:293: +1
if ((lhs_all_true && !lhs_is_nullable) || (lhs_all_true && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:293: +1
if ((lhs_all_true && !lhs_is_nullable) || (lhs_all_true && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:293: +1
if ((lhs_all_true && !lhs_is_nullable) || (lhs_all_true && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:296: +1, nesting level increased to 2
} else { ^
be/src/vec/exprs/vcompound_pred.h:297: +3, including nesting penalty of 2, nesting level increased to 3
RETURN_IF_ERROR(get_rhs_colum()); ^
be/src/common/status.h:622: expanded from macro 'RETURN_IF_ERROR'
do { \ ^
be/src/vec/exprs/vcompound_pred.h:297: +4, including nesting penalty of 3, nesting level increased to 4
RETURN_IF_ERROR(get_rhs_colum()); ^
be/src/common/status.h:624: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \ ^
be/src/vec/exprs/vcompound_pred.h:298: +3, including nesting penalty of 2, nesting level increased to 3
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:298: +1
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:298: +1
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:298: +1
if ((lhs_all_false && !lhs_is_nullable) || (lhs_all_false && lhs_all_is_not_null)) { ^
be/src/vec/exprs/vcompound_pred.h:301: +1, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:301: +1
be/src/vec/exprs/vcompound_pred.h:301: +1
be/src/vec/exprs/vcompound_pred.h:302: +1
be/src/vec/exprs/vcompound_pred.h:305: +1, nesting level increased to 3
be/src/vec/exprs/vcompound_pred.h:305: +1
be/src/vec/exprs/vcompound_pred.h:305: +1
be/src/vec/exprs/vcompound_pred.h:306: +1
be/src/vec/exprs/vcompound_pred.h:309: +1, nesting level increased to 3
} else { ^
be/src/vec/exprs/vcompound_pred.h:310: +4, including nesting penalty of 3, nesting level increased to 4
if (!result_is_nullable) { ^
be/src/vec/exprs/vcompound_pred.h:312: +5, including nesting penalty of 4, nesting level increased to 5
be/src/vec/exprs/vcompound_pred.h:315: +1, nesting level increased to 4
} else { ^
be/src/vec/exprs/vcompound_pred.h:320: +1, nesting level increased to 1
} else { ^