[Improve](datatype) change check_column to check data type (#25466)

* change check_column to check data type

* fix is_number contains is_decimal

* fix array element
This commit is contained in:
amory
2023-10-23 18:36:37 +08:00
committed by GitHub
parent 28c799ce35
commit 5f6371bf0f
6 changed files with 128 additions and 120 deletions

View File

@ -379,19 +379,21 @@ public:
static_cast<const ColumnNullable&>(array_column.get_data());
const auto& nested_column = nested_nullable_column.get_nested_column();
const auto& nested_null_map = nested_nullable_column.get_null_map_column().get_data();
if (check_column<ColumnInt8>(nested_column)) {
WhichDataType which_type(argument_type);
if (which_type.is_int8()) {
static_cast<void>(Impl::template vector<ColumnInt8>(
offset_column_data, nested_column, nested_null_map, res, null_map));
} else if (check_column<ColumnUInt8>(nested_column)) {
} else if (which_type.is_uint8()) {
static_cast<void>(Impl::template vector<ColumnUInt8>(
offset_column_data, nested_column, nested_null_map, res, null_map));
} else if (check_column<ColumnInt16>(nested_column)) {
} else if (which_type.is_int16()) {
static_cast<void>(Impl::template vector<ColumnInt16>(
offset_column_data, nested_column, nested_null_map, res, null_map));
} else if (check_column<ColumnInt32>(nested_column)) {
} else if (which_type.is_int32()) {
static_cast<void>(Impl::template vector<ColumnInt32>(
offset_column_data, nested_column, nested_null_map, res, null_map));
} else if (check_column<ColumnInt64>(nested_column)) {
} else if (which_type.is_int64()) {
static_cast<void>(Impl::template vector<ColumnInt64>(
offset_column_data, nested_column, nested_null_map, res, null_map));
} else {