wgtmac commented on PR #46906:
URL: https://github.com/apache/arrow/pull/46906#issuecomment-3228450838

   ```
   diff --git a/cpp/src/arrow/adapters/orc/util.cc 
b/cpp/src/arrow/adapters/orc/util.cc
   index 6974faae59..b7a58ebcd4 100644
   --- a/cpp/src/arrow/adapters/orc/util.cc
   +++ b/cpp/src/arrow/adapters/orc/util.cc
   @@ -18,6 +18,7 @@
    #include "arrow/adapters/orc/util.h"
   
    #include <cmath>
   +#include <cstdint>
    #include <sstream>
    #include <string>
    #include <string_view>
   @@ -212,7 +213,10 @@ Status AppendTimestampBatch(liborc::ColumnVectorBatch* 
column_vector_batch,
      const int64_t* seconds = batch->data.data() + offset;
      const int64_t* nanos = batch->nanoseconds.data() + offset;
   
   -  auto transform_timestamp = [seconds, nanos](int64_t index) {
   +  auto transform_timestamp = [seconds, nanos, valid_bytes](int64_t index) 
-> int64_t {
   +    if (valid_bytes && !valid_bytes[index]) {
   +      return 0;
   +    }
        return seconds[index] * kOneSecondNanos + nanos[index];
      };
   ```
   
   Could you please apply this patch?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to