[pick](Variant) casting to decimal type may lost precision (#39843)

#39650
This commit is contained in:
lihangyu
2024-08-23 22:47:32 +08:00
committed by GitHub
parent 37443aa7e1
commit 3103bb08dc
13 changed files with 56 additions and 39 deletions

View File

@ -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;
}