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

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


The following commit(s) were added to refs/heads/orc by this push:
     new 70b673c7d29 [fix]Fix add row count metric test crash.
70b673c7d29 is described below

commit 70b673c7d299690ced7c4c600fabaee9e1601198
Author: Qi Chen <[email protected]>
AuthorDate: Wed Jul 23 13:55:33 2025 +0800

    [fix]Fix add row count metric test crash.
---
 c++/src/Reader.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/c++/src/Reader.cc b/c++/src/Reader.cc
index 89bdd77bc6e..82cd3e0f0d7 100644
--- a/c++/src/Reader.cc
+++ b/c++/src/Reader.cc
@@ -1249,7 +1249,9 @@ namespace orc {
           continue;
         }
       } else {
-        contents->readerMetrics->ReadRowCount.fetch_add(rowsInCurrentStripe);
+        if (contents->readerMetrics != nullptr) {
+          contents->readerMetrics->ReadRowCount.fetch_add(rowsInCurrentStripe);
+        }
         if (filter) {
           // read row group statistics and bloom filters of current stripe
           loadStripeIndex();


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

Reply via email to