[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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user