Skip to content

[Vectorized][Feature] support money_format/ucase/character_length - #7649

Merged
HappenLee merged 3 commits into
apache:vectorizedfrom
BiteTheDDDDt:dev_money
Jan 7, 2022
Merged

HappenLee merged 3 commits into
apache:vectorizedfrom
BiteTheDDDDt:dev_money

Conversation

@BiteTheDDDDt

Copy link
Copy Markdown
Contributor

Proposed changes

Close related #7648 (replace it with issue number if it exists).

@HappenLee

Types of changes

What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)
  • Code refactor (Modify the code structure, format the code, etc...)
  • Optimization. Including functional usability improvements and performance improvements.
  • Dependency. Such as changes related to third-party components.
  • Other.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have created an issue on (Fix [Vectorized][Feature] support money_format/ucase/character_length #7648) and described the bug/feature there in detail
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If these changes need document changes, I have updated the document
  • Any dependent changes have been merged

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

Comment thread be/src/vec/functions/function_string.h Outdated
auto data_column = assert_cast<const ColumnVector<Float64>*>(argument_column.get());
auto result_column = assert_cast<ColumnString*>(res_column.get());

for (int i = 0; i < input_rows_count; i++) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

make int i as size_t i

Comment thread be/src/vec/functions/function_string.h Outdated
static DataTypes get_variadic_argument_types() { return {std::make_shared<DataTypeInt64>()}; }

static Status execute_impl(FunctionContext* context, Block& block,
const ColumnNumbers& arguments, size_t result,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

these execute_impl versions just have a little different.
suggest you to design a common function reducing code lines?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

these execute_impl versions just have a little different. suggest you to design a common function reducing code lines?

I do some improve.

@HappenLee
HappenLee merged commit 55a6a80 into apache:vectorized Jan 7, 2022
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Jan 13, 2022
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Jan 13, 2022
@BiteTheDDDDt
BiteTheDDDDt deleted the dev_money branch January 20, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants