Update FunctionsJSON.h

This commit is contained in:
Kseniia Sumarokova 2021-07-02 22:37:09 +03:00 committed by GitHub
parent 9977629c89
commit fb6fc028bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,7 +679,7 @@ struct JSONExtractTree
return false;
const auto * type = assert_cast<const DataTypeDecimal<DecimalType> *>(data_type.get());
std::stringstream ss;
std::stringstream ss; // STYLE_CHECK_ALLOW_STD_STRING_STREAM
ss << std::setprecision(type->getPrecision()) << element.getDouble();
auto str = ss.str();
ReadBufferFromString res(str);