HagaiHargil commented on issue #646: URL: https://github.com/apache/arrow-rs/issues/646#issuecomment-891605802
I have exactly zero experience with the internals of this library, but it seems to me that `total_blocks`, the variable responsible for keeping tabs on the number of existing data blocks in the stream, is never updated past its initialization [here](https://github.com/apache/arrow-rs/blob/6bf1988852f87da21a163203eec4c83a7b692901/arrow/src/ipc/reader.rs#L587). Then, when I call `.next()` on the iterator I arrive [here](https://github.com/apache/arrow-rs/blob/6bf1988852f87da21a163203eec4c83a7b692901/arrow/src/ipc/reader.rs#L738), which checks for the number of remaining blocks. Since the number of data blocks is only determined at initialization time, there comes a moment when the stream exhausts the initial blocks it had and then it will always return `None`. Please forgive me if this quick dive was unneeded and/or incorrect, I'm only hoping for a quick-ish fix of this issue. -- 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]
