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

morningman 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 77e8f92669c [Fix] Revert PR309 computeRGIdx() changes, it will fix in 
the next PR. (#310)
77e8f92669c is described below

commit 77e8f92669c9ad658ba7f626364c9ba7eb593e36
Author: Qi Chen <che...@selectdb.com>
AuthorDate: Sun Apr 27 12:48:29 2025 +0800

    [Fix] Revert PR309 computeRGIdx() changes, it will fix in the next PR. 
(#310)
---
 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 542eda5c9e2..2cfd6417c5b 100644
--- a/c++/src/Reader.cc
+++ b/c++/src/Reader.cc
@@ -1407,7 +1407,7 @@ namespace orc {
    * @return Id of the RowGroup that the row belongs to
    */
   int RowReaderImpl::computeRGIdx(uint64_t rowIndexStride, long rowIdx) {
-    return rowIndexStride == 0 ? 0 : static_cast<int>(rowIdx / 
static_cast<long>(rowIndexStride));
+    return rowIndexStride == 0 ? 0 : (int)(rowIdx / rowIndexStride);
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to