yiguolei commented on code in PR #59488:
URL: https://github.com/apache/doris/pull/59488#discussion_r2667228289


##########
be/src/vec/data_types/data_type_decimal.h:
##########
@@ -258,22 +258,22 @@ class DataTypeDecimal final : public IDataType, public 
DecimalScaleInfo<T> {
             if (value.parse_from_str(node.decimal_literal.value.c_str(),
                                      
cast_set<int>(node.decimal_literal.value.size())) ==
                 E_DEC_OK) {
-                return Field::create_field<TYPE_DECIMALV2>(
-                        DecimalField<FieldType>(value.value(), value.scale()));
+                return Field::create_field<TYPE_DECIMALV2>(std::move(value));

Review Comment:
   感觉Field 内定义的那个variant 没有包含这个DecimalV2Value



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to