From 55bb1796fd681ead03bfa74bcf2699fad715adda Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Sat, 11 Sep 2021 21:25:28 +0800 Subject: [PATCH] fixup --- native-sql-engine/cpp/src/jni/jni_wrapper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-sql-engine/cpp/src/jni/jni_wrapper.cc b/native-sql-engine/cpp/src/jni/jni_wrapper.cc index 3b66fa1bf..6bad9ed1f 100644 --- a/native-sql-engine/cpp/src/jni/jni_wrapper.cc +++ b/native-sql-engine/cpp/src/jni/jni_wrapper.cc @@ -1486,7 +1486,7 @@ Java_com_intel_oap_vectorized_ShuffleDecompressionJniWrapper_decompress( return nullptr; } const arrow::Result& r = - ToBytes(env, arrow::RecordBatch::Make(schema, num_rows, std::move(arrays))); + ToBytes(env, rb); if (!r.ok()) { std::string error_message = "Error deserializing message" + r.status().message(); env->ThrowNew(io_exception_class, error_message.c_str());