diff --git a/cpp/velox/jni/VeloxJniWrapper.cc b/cpp/velox/jni/VeloxJniWrapper.cc index 5633084c0446..3b96942b22a9 100644 --- a/cpp/velox/jni/VeloxJniWrapper.cc +++ b/cpp/velox/jni/VeloxJniWrapper.cc @@ -581,10 +581,11 @@ Java_org_apache_gluten_datasource_VeloxDataSourceJniWrapper_splitBlockByPartitio const auto numRows = inputRowVector->size(); connector::hive::PartitionIdGenerator idGen( - asRowType(inputRowVector->type()), partitionColIndicesVec, 65536, pool.get() + asRowType(inputRowVector->type()), partitionColIndicesVec, 65536, pool.get(), #ifdef GLUTEN_ENABLE_ENHANCED_FEATURES - , true +#else + false #endif ); raw_vector partitionIds{};