You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2019/05/15 15:20:42 UTC

[arrow] branch master updated: PARQUET-1574: [C++] fix parquet-encoding-test

This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 181ebd4  PARQUET-1574: [C++] fix parquet-encoding-test
181ebd4 is described below

commit 181ebd4fd942eda852ef020784f14952ac000e25
Author: Renat Valiullin <ri...@gmail.com>
AuthorDate: Wed May 15 17:20:27 2019 +0200

    PARQUET-1574: [C++] fix parquet-encoding-test
    
    Author: Renat Valiullin <ri...@gmail.com>
    
    Closes #4311 from rip-nsk/PARQUET-1574 and squashes the following commits:
    
    3546d4c31 <Renat Valiullin> fix parquet-encoding-test
---
 cpp/src/parquet/encoding-test.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/src/parquet/encoding-test.cc b/cpp/src/parquet/encoding-test.cc
index 593a5d2..33a9927 100644
--- a/cpp/src/parquet/encoding-test.cc
+++ b/cpp/src/parquet/encoding-test.cc
@@ -383,7 +383,7 @@ class TestArrowBuilderDecoding : public ::testing::Test {
 
     // Initialize input_data_ for the encoder from the expected_array_ values
     const auto& binary_array = static_cast<const ::arrow::BinaryArray&>(*expected_dense_);
-    input_data_.reserve(binary_array.length());
+    input_data_.resize(binary_array.length());
 
     for (int64_t i = 0; i < binary_array.length(); ++i) {
       auto view = binary_array.GetView(i);