Skip to content

Conversation

@sjyango
Copy link
Contributor

@sjyango sjyango commented Dec 19, 2023

Proposed changes

update from_string_test be ut based on issue #26534

output:
image

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

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


class FunctionIsIPv4String : public IFunction {
private:
Status execute_type(Block& block, const ColumnWithTypeAndName& argument, size_t result) 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: method 'execute_type' can be made static [readability-convert-member-functions-to-static]

Suggested change
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 {
Copy link
Contributor

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]

Suggested change
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 {
Copy link
Contributor

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]

Suggested change
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 {
Copy link
Contributor

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]

Suggested change
DataTypePtr get_return_type_impl(const DataTypes& arguments) const override {
static DataTypePtr get_return_type_impl(const DataTypes& arguments) override {

@sjyango sjyango closed this Dec 19, 2023
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.

1 participant