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

kakachen pushed a commit to branch cq_nested_column_prune_external_table
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git

commit 71af3e2535a1bb32ccaeffaf8fa534ac142b6199
Author: kakachen <[email protected]>
AuthorDate: Thu Dec 4 17:57:30 2025 +0800

    [fix](orc-reader) Fix Orc row reader nextBatch failed. reason = 
unordered_map.
---
 c++/src/ColumnReader.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/c++/src/ColumnReader.cc b/c++/src/ColumnReader.cc
index c8b03fc435e..482eb29d4d4 100644
--- a/c++/src/ColumnReader.cc
+++ b/c++/src/ColumnReader.cc
@@ -116,7 +116,10 @@ namespace orc {
   void ColumnReader::seekToRowGroup(std::unordered_map<uint64_t, 
PositionProvider>& positions,
                                     const ReadPhase& readPhase) {
     if (notNullDecoder.get()) {
-      notNullDecoder->seek(positions.at(columnId));
+      auto it = positions.find(columnId);
+      if (it != positions.end()) {
+        notNullDecoder->seek(it->second);
+      }
     }
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to