From f6807be3e7628a131df1b1c7dfb170712d9ab10e Mon Sep 17 00:00:00 2001 From: Ankita Victor Date: Mon, 18 Mar 2024 20:03:50 +0530 Subject: [PATCH] Make strings const --- velox/functions/sparksql/tests/StringTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/velox/functions/sparksql/tests/StringTest.cpp b/velox/functions/sparksql/tests/StringTest.cpp index aea4ac1b2e7e..60bf3516bf06 100644 --- a/velox/functions/sparksql/tests/StringTest.cpp +++ b/velox/functions/sparksql/tests/StringTest.cpp @@ -294,8 +294,8 @@ TEST_F(StringTest, lengthVarbinary) { } TEST_F(StringTest, lpad) { - std::string invalidString = "Ψ\xFF\xFFΣΓΔA"; - std::string invalidPadString = "\xFFΨ\xFF"; + const std::string invalidString = "Ψ\xFF\xFFΣΓΔA"; + const std::string invalidPadString = "\xFFΨ\xFF"; const auto lpad = [&](const std::optional& string, const std::optional& size) {