diff --git a/cpp/core/jni/JniWrapper.cc b/cpp/core/jni/JniWrapper.cc index e311da0d6177..230f8b42e3b1 100644 --- a/cpp/core/jni/JniWrapper.cc +++ b/cpp/core/jni/JniWrapper.cc @@ -785,8 +785,8 @@ JNIEXPORT jlong JNICALL Java_io_glutenproject_vectorized_ShuffleWriterJniWrapper shuffleWriterOptions.buffer_size = bufferSize; } + shuffleWriterOptions.compression_type = getCompressionType(env, codecJstr); if (codecJstr != NULL) { - shuffleWriterOptions.compression_type = getCompressionType(env, codecJstr); shuffleWriterOptions.codec_backend = getCodecBackend(env, codecBackendJstr); shuffleWriterOptions.compression_mode = getCompressionMode(env, compressionModeJstr); }