guocanwen opened a new issue #9934:
URL: https://github.com/apache/arrow/issues/9934


     _chunk = _column->chunk(_chunk_idx);
     auto items = static_cast<arrow::ListArray*>(_chunk.get());
     auto values = std::static_pointer_cast<arrow::Int64Array>(items->values());
     auto raw_values = values->data()->GetValues<int64_t>(1);  **//  or auto 
raw_values = values->raw_values()**
     int temp = 0;
     if (values->data()->GetValues<int64_t>(1) != values->raw_values()) {
             LOG(ERROR) << "Are you kidding!. a=" << 
values->data()->GetValues<int64_t>(1)
                      << ", b=" << values->raw_values();  //  The log outputs
      }
      for (int d = 0; d < values->length(); ++d) {
           temp += *(raw_values + d);   **// Come here after run a few times. 
Can not access memory by address**
      }
      LOG(ERROR) << "addr=" << (int64_t) _chunk.get() << ", temp=" << temp;
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to