imay commented on a change in pull request #2310: Marising
URL: https://github.com/apache/incubator-doris/pull/2310#discussion_r351170104
 
 

 ##########
 File path: be/src/olap/types.h
 ##########
 @@ -374,6 +384,20 @@ struct FieldTypeTraits<OLAP_FIELD_TYPE_DOUBLE> : public 
BaseFieldtypeTraits<OLAP
         snprintf(buf, sizeof(buf), "%.10f", *reinterpret_cast<const 
CppType*>(src));
         return std::string(buf);
     }
+    static OLAPStatus convert_from(void* dest, const void* src, const 
TypeInfo* src_type, MemPool* mem_pool) {
+        //only support float now
+        if(src_type->type() == OLAP_FIELD_TYPE_FLOAT){
 
 Review comment:
   Better to comment why converting float to double like this. I think you can 
paste the content in issue here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to