github-actions[bot] commented on code in PR #15669: URL: https://github.com/apache/doris/pull/15669#discussion_r1069075952
########## be/src/vec/data_types/data_type_struct.cpp: ########## @@ -22,17 +22,6 @@ namespace doris::vectorized { -namespace ErrorCodes { -extern const int BAD_ARGUMENTS; -extern const int DUPLICATE_COLUMN; -extern const int EMPTY_DATA_PASSED; -extern const int NOT_FOUND_COLUMN_IN_BLOCK; -extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; -extern const int SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH; -extern const int ILLEGAL_INDEX; -extern const int LOGICAL_ERROR; -} // namespace ErrorCodes - DataTypeStruct::DataTypeStruct(const DataTypes& elems_) : elems(elems_), have_explicit_names(false) { Review Comment: warning: unused variable 'NOT_FOUND_COLUMN_IN_BLOCK' [clang-diagnostic-unused-const-variable] ```cpp const int NOT_FOUND_COLUMN_IN_BLOCK = 10; ^ ``` ########## be/src/vec/data_types/data_type_struct.cpp: ########## @@ -22,17 +22,6 @@ namespace doris::vectorized { -namespace ErrorCodes { -extern const int BAD_ARGUMENTS; -extern const int DUPLICATE_COLUMN; -extern const int EMPTY_DATA_PASSED; -extern const int NOT_FOUND_COLUMN_IN_BLOCK; -extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; -extern const int SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH; -extern const int ILLEGAL_INDEX; -extern const int LOGICAL_ERROR; -} // namespace ErrorCodes - DataTypeStruct::DataTypeStruct(const DataTypes& elems_) : elems(elems_), have_explicit_names(false) { /// Automatically assigned names in form of '1', '2', ... Review Comment: warning: unused variable 'SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH' [clang-diagnostic-unused-const-variable] ```cpp const int SIZES_OF_COLUMNS_IN_TUPLE_DOESNT_MATCH = 13; ^ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org