kangpinghuang commented on a change in pull request #2925: fix bug: Error of exporting double type data to hdfs (#2924) URL: https://github.com/apache/incubator-doris/pull/2925#discussion_r380438126
########## File path: be/src/runtime/export_sink.cpp ########## @@ -142,10 +142,10 @@ Status ExportSink::gen_row_buffer(TupleRow* row, std::stringstream* ss) { (*ss) << reinterpret_cast<PackedInt128*>(item)->value; break; case TYPE_FLOAT: - (*ss) << *static_cast<float*>(item); + (*ss) << std::to_string(*static_cast<float*>(item)); break; case TYPE_DOUBLE: - (*ss) << *static_cast<double*>(item); + (*ss) << std::to_string(*static_cast<double*>(item)); Review comment: why? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org