WillAyd commented on issue #593:
URL: 
https://github.com/apache/arrow-nanoarrow/issues/593#issuecomment-2303131215

   Yea if you do row-oriented iteration I think there is less value. Maybe 
there should be a way to differentiate how you want to iterate?
   
   For column iteration, I think something of the form:
   
   ```cpp
     for (const auto &chunk : array_stream) {
       for (const auto& [schema_view, array_view] : chunk.Columns()) {
         // maybe do something with the schema here, like init an ArrowDecimal 
from precision / scale
         for (const auto value :
              nanoarrow::ViewArrayAs<int64_t>(array_view.get())) {
           // do something with the values of each array here
         }
       }
     }
   ```
   
   would make for an idiomatic C++ solution. 


-- 
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: [email protected]

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

Reply via email to