From 9341e31dfc307a400860bb34331bd63b6fe648f8 Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Fri, 26 Jul 2024 15:14:32 +0800 Subject: [PATCH] fixup --- cpp/core/jni/JniWrapper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/core/jni/JniWrapper.cc b/cpp/core/jni/JniWrapper.cc index 03c936c478b41..9decc74029a06 100644 --- a/cpp/core/jni/JniWrapper.cc +++ b/cpp/core/jni/JniWrapper.cc @@ -543,11 +543,11 @@ Java_org_apache_gluten_vectorized_NativeColumnarToRowJniWrapper_nativeColumnarTo auto& conf = ctx->getConfMap(); int64_t column2RowMemThreshold; auto it = conf.find(kColumnToRowMemoryThreshold); - bool confIsLeagal = + bool confIsLegal = ((it == conf.end()) ? false : std::all_of(it->second.begin(), it->second.end(), [](unsigned char c) { return std::isdigit(c); })); - if (confIsLeagal) { + if (confIsLegal) { column2RowMemThreshold = std::stoll(it->second); } else { LOG(INFO)