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

gangwu pushed a commit to branch branch-1.7
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-1.7 by this push:
     new bef1788  ORC-990: [C++] Fix undefined behavior of 
RowReaderImpl::seekToRowGroup
bef1788 is described below

commit bef1788d61e5c91de5ca4476a379e06880def986
Author: Renat Valiullin <[email protected]>
AuthorDate: Fri Sep 10 02:47:19 2021 -0700

    ORC-990: [C++] Fix undefined behavior of RowReaderImpl::seekToRowGroup
    
    This fixes #903
---
 c++/src/Reader.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c++/src/Reader.cc b/c++/src/Reader.cc
index 0811dbe..c44439a 100644
--- a/c++/src/Reader.cc
+++ b/c++/src/Reader.cc
@@ -385,7 +385,7 @@ namespace orc {
 
   void RowReaderImpl::seekToRowGroup(uint32_t rowGroupEntryId) {
     // store positions for selected columns
-    std::vector<std::list<uint64_t>> positions;
+    std::list<std::list<uint64_t>> positions;
     // store position providers for selected colimns
     std::unordered_map<uint64_t, PositionProvider> positionProviders;
 

Reply via email to