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


##########
be/src/olap/types.h:
##########
@@ -1046,11 +1047,7 @@ struct FieldTypeTraits<FieldType::OLAP_FIELD_TYPE_FLOAT>
         return Status::OK();
     }
     static std::string to_string(const void* src) {
-        char buf[1024] = {'\0'};
-        int length = to_buffer(*reinterpret_cast<const CppType*>(src), 
MAX_FLOAT_STR_LENGTH, buf);
-        DCHECK(length >= 0) << "gcvt float failed, float value="
-                            << *reinterpret_cast<const CppType*>(src);
-        return std::string(buf);
+        return vectorized::CastToString::from_number(*reinterpret_cast<const 
CppType*>(src));

Review Comment:
   此时这里是严格模式,还是非严格模式?



-- 
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