Skip to content

Conversation

@zhangstar333
Copy link
Contributor

cherry-pick from master #32219
add some error msg from repeat function, so the user could know the count is greater than default value.

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

…n repeat function (apache#32219)

add some error msg from repeat function, so the user could know the count is greater than default value.
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zhangstar333
Copy link
Contributor Author

run buildall

Copy link
Contributor

@github-actions github-actions bot left a 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

static FunctionPtr create() { return std::make_shared<FunctionStringRepeat>(); }
String get_name() const override { return name; }
size_t get_number_of_arguments() const override { return 2; }
std::string error_msg(int default_value, int repeat_value) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'error_msg' should be marked [[nodiscard]] [modernize-use-nodiscard]

Suggested change
std::string error_msg(int default_value, int repeat_value) const {
[[nodiscard]] std::string error_msg(int default_value, int repeat_value) const {

@yiguolei
Copy link
Contributor

run buildall

@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Mar 21, 2024
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.80% (8042/21274)
Line Coverage: 29.46% (65636/222809)
Region Coverage: 28.94% (33786/116734)
Branch Coverage: 24.78% (17339/69962)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ef6e21619893c389afb6e2ea6fb8b77701f1695c_ef6e21619893c389afb6e2ea6fb8b77701f1695c/report/index.html

@xiaokang xiaokang merged commit a6d52f5 into apache:branch-2.0 Mar 21, 2024
mongo360 pushed a commit to mongo360/doris that referenced this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants