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.
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
[Enhancement](function)make SUBSTRING_INDEX function DEPEND_ON_ARGUMENT #30392
[Enhancement](function)make SUBSTRING_INDEX function DEPEND_ON_ARGUMENT #30392
Changes from 33 commits
6634f14
06a2b86
ae4796a
908e67a
3c822a5
e036cd8
1bb782a
9911e5a
e2d92c7
dcc5b5c
cbff39b
ed500cb
386b65b
68a471a
17edeb7
ca96d22
e6bbf68
c6de052
d8d82f0
9e1e2ec
c6a179b
c9f924e
2796aa6
ee9715b
f5c061c
52c0692
6009c00
dfbf245
889dc01
f54917d
5d27b5a
78b7553
b7ecc51
1171516
2e19b44
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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_impl' has cognitive complexity of 86 (threshold 50) [readability-function-cognitive-complexity]
Additional context
be/src/vec/functions/function_string.h:1888: +1, including nesting penalty of 0, nesting level increased to 1
be/src/vec/functions/function_string.h:1888: +1
be/src/vec/functions/function_string.h:1889: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/functions/function_string.h:1892: +1, nesting level increased to 1
be/src/vec/functions/function_string.h:1893: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/functions/function_string.h:1895: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/functions/function_string.h:1899: +4, including nesting penalty of 3, nesting level increased to 4
while (num < part_number) { ^
be/src/vec/functions/function_string.h:1903: +5, including nesting penalty of 4, nesting level increased to 5
be/src/vec/functions/function_string.h:1906: +1, nesting level increased to 5
} else { ^
be/src/vec/functions/function_string.h:1908: +6, including nesting penalty of 5, nesting level increased to 6
be/src/vec/functions/function_string.h:1913: +4, including nesting penalty of 3, nesting level increased to 4
if (num == part_number) { ^
be/src/vec/functions/function_string.h:1918: +1, nesting level increased to 4
} else { ^
be/src/vec/functions/function_string.h:1923: +1, nesting level increased to 2
} else { ^
be/src/vec/functions/function_string.h:1926: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/functions/function_string.h:1930: +4, including nesting penalty of 3, nesting level increased to 4
while (num < part_number) { ^
be/src/vec/functions/function_string.h:1934: +5, including nesting penalty of 4, nesting level increased to 5
if (pos < str.data + str.size) { ^
be/src/vec/functions/function_string.h:1937: +1, nesting level increased to 5
} else { ^
be/src/vec/functions/function_string.h:1939: +6, including nesting penalty of 5, nesting level increased to 6
be/src/vec/functions/function_string.h:1944: +4, including nesting penalty of 3, nesting level increased to 4
if (num == part_number) { ^
be/src/vec/functions/function_string.h:1949: +1, nesting level increased to 4
} else { ^
be/src/vec/functions/function_string.h:1955: +1, nesting level increased to 1
} else { ^
be/src/vec/functions/function_string.h:1958: +2, including nesting penalty of 1, nesting level increased to 2
be/src/vec/functions/function_string.h:1965: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/functions/function_string.h:1965: +1
be/src/vec/functions/function_string.h:1967: +4, including nesting penalty of 3, nesting level increased to 4
be/src/vec/functions/function_string.h:1968: +5, including nesting penalty of 4, nesting level increased to 5
if (++num == part_number) { ^
be/src/vec/functions/function_string.h:1974: +1, nesting level increased to 4
} else { ^
be/src/vec/functions/function_string.h:1978: +3, including nesting penalty of 2, nesting level increased to 3
be/src/vec/functions/function_string.h:1978: +1
be/src/vec/functions/function_string.h:1980: +3, including nesting penalty of 2, nesting level increased to 3
if (num == part_number) { ^
be/src/vec/functions/function_string.h:1981: +4, including nesting penalty of 3, nesting level increased to 4
be/src/vec/functions/function_string.h:1984: +1, nesting level increased to 4
} else { ^
be/src/vec/functions/function_string.h:1990: +1, nesting level increased to 3
} else { ^
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_impl' exceeds recommended size/complexity thresholds [readability-function-size]
Additional context
be/src/vec/functions/function_string.h:1862: 136 lines including whitespace and comments (threshold 80)
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: method 'get_return_type_impl' can be made static [readability-convert-member-functions-to-static]