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)