You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/02/17 16:38:03 UTC
[GitHub] [incubator-doris] wutiangan opened a new issue #2924: Error of
exporting double type data
wutiangan opened a new issue #2924: Error of exporting double type data
URL: https://github.com/apache/incubator-doris/issues/2924
When exporting a table of type double to HDFS, the data of conversion is wrong.
When doris be exports data of type double, the values of all columns are converted to the form of stringstream, but the precision will be lost if the type double is directly put into stringstream.
for example:
```
double f = 27361919854.929001;
std: :stringstream ss;
ss << f;
cout << ss.str() << endl;
ss.str("");
ss << std::to_string(f);
cout << ss.str() << endl;
```
results:
```
2.73619e+10
27361919854.929001
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] imay closed issue #2924: Error of exporting
double type data
Posted by GitBox <gi...@apache.org>.
imay closed issue #2924: Error of exporting double type data
URL: https://github.com/apache/incubator-doris/issues/2924
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org