From 8486dda1b28669a297718c93233965a8bce15b53 Mon Sep 17 00:00:00 2001 From: Jack Del Vecchio Date: Wed, 18 Oct 2023 12:42:13 +0000 Subject: [PATCH] Remove inline constructor and change temp container to std::string --- plugins/parquet/parquetembed.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/parquet/parquetembed.cpp b/plugins/parquet/parquetembed.cpp index 91df843a1a5..290766733a9 100644 --- a/plugins/parquet/parquetembed.cpp +++ b/plugins/parquet/parquetembed.cpp @@ -956,7 +956,8 @@ __int64 ParquetRowBuilder::getCurrIntValue(const RtlFieldInfo *field) { __int64 myint64 = 0; auto scalar = getCurrView(field); - handleDeserializeOutcome(tokenDeserializer.deserialize(StringBuffer(scalar.size(), scalar.data()).str(), myint64), "signed", scalar.data()); + std::string scalarStr(scalar.data(), scalar.size()); + handleDeserializeOutcome(tokenDeserializer.deserialize(scalarStr.c_str(), myint64), "signed", scalarStr.c_str()); return myint64; } } @@ -986,7 +987,8 @@ double ParquetRowBuilder::getCurrRealValue(const RtlFieldInfo *field) { double mydouble = 0.0; auto scalar = getCurrView(field); - handleDeserializeOutcome(tokenDeserializer.deserialize(StringBuffer(scalar.size(), scalar.data()).str(), mydouble), "real", scalar.data()); + std::string scalarStr(scalar.data(), scalar.size()); + handleDeserializeOutcome(tokenDeserializer.deserialize(scalarStr.c_str(), mydouble), "real", scalarStr.c_str()); return mydouble; } }