From fb2bb77ff0748c6670ab5c015a0ff5e2f0179ce3 Mon Sep 17 00:00:00 2001 From: mwish Date: Wed, 31 Jan 2024 01:05:21 +0800 Subject: [PATCH] fix stupid error --- cpp/src/arrow/io/compressed.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/io/compressed.cc b/cpp/src/arrow/io/compressed.cc index 6d4c432ef7111..9e467f3bc8b61 100644 --- a/cpp/src/arrow/io/compressed.cc +++ b/cpp/src/arrow/io/compressed.cc @@ -272,7 +272,7 @@ class CompressedInputStream::Impl { int64_t compressed_avail = compressed_ ? compressed_->size() - compressed_pos_ : 0; if (compressed_avail == 0) { // Ensure compressed_ buffer is allocated with kChunkSize. - if (supports_zero_copy_from_raw_) { + if (!supports_zero_copy_from_raw_) { if (compressed_for_non_zero_copy_ == nullptr) { ARROW_ASSIGN_OR_RAISE(compressed_for_non_zero_copy_, AllocateResizableBuffer(kChunkSize, pool_));