[pick](Variant) casting to decimal type may lost precision (#39843)
#39650
This commit is contained in:
@ -272,7 +272,8 @@ TabletColumn TabletReader::materialize_column(const TabletColumn& orig) {
|
||||
}
|
||||
TabletColumn column_with_cast_type = orig;
|
||||
auto cast_type = _reader_context.target_cast_type_for_variants.at(orig.name());
|
||||
column_with_cast_type.set_type(TabletColumn::get_field_type_by_type(cast_type));
|
||||
FieldType filed_type = TabletColumn::get_field_type_by_type(cast_type.type);
|
||||
column_with_cast_type.set_type(filed_type);
|
||||
return column_with_cast_type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user