diff --git a/presto-native-execution/presto_cpp/presto_protocol/core/DataSize.cpp b/presto-native-execution/presto_cpp/presto_protocol/core/DataSize.cpp index b53316da1af8..afd089595b50 100644 --- a/presto-native-execution/presto_cpp/presto_protocol/core/DataSize.cpp +++ b/presto-native-execution/presto_cpp/presto_protocol/core/DataSize.cpp @@ -12,8 +12,8 @@ * limitations under the License. */ #include "presto_cpp/presto_protocol/core/DataSize.h" -#include #include +#include namespace facebook::presto::protocol { diff --git a/presto-native-execution/presto_cpp/presto_protocol/core/Duration.cpp b/presto-native-execution/presto_cpp/presto_protocol/core/Duration.cpp index c66a5e850b77..720f5b64be03 100644 --- a/presto-native-execution/presto_cpp/presto_protocol/core/Duration.cpp +++ b/presto-native-execution/presto_cpp/presto_protocol/core/Duration.cpp @@ -29,7 +29,7 @@ Duration::Duration(const std::string& duration) { std::string Duration::toString() const { return fmt::format( - "{:-f}{}", + "{:.2f}{}", value_, timeUnitToString(timeUnit_) );