-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Feature](datatype) update be ut codes and opt datatype for IPv4/v6 #28648
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
Conversation
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.
clang-tidy made some suggestions
|
|
||
| class FunctionIsIPv4String : public IFunction { | ||
| private: | ||
| Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) const { |
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 'execute_type' can be made static [readability-convert-member-functions-to-static]
| Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) const { | |
| static Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) { |
|
|
||
| size_t get_number_of_arguments() const override { return 1; } | ||
|
|
||
| DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
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]
| DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | |
| static DataTypePtr get_return_type_impl(const DataTypes& arguments) override { |
|
|
||
| class FunctionIsIPv6String : public IFunction { | ||
| private: | ||
| Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) const { |
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 'execute_type' can be made static [readability-convert-member-functions-to-static]
| Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) const { | |
| static Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) { |
|
|
||
| size_t get_number_of_arguments() const override { return 1; } | ||
|
|
||
| DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
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]
| DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | |
| static DataTypePtr get_return_type_impl(const DataTypes& arguments) override { |
Proposed changes
update
from_string_testbe ut based on issue #26534output:

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...