imay 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_r380665345
##########
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));
Review comment:
Please use FloatToBuffer(gutil/strings/numbers.h) to print float and double
value
----------------------------------------------------------------
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]