mapleFU commented on issue #38275: URL: https://github.com/apache/arrow/issues/38275#issuecomment-1763767160
https://stackoverflow.com/questions/18883414/evaluation-of-list-comprehensions-in-python From the link above, I've a long time doesn't write Python, but I remember only comprehension like `(...)` is lazy evaluation, the list comprehension doesn't? Besides, `open` doesn't do that, but I don't know what would `open` with `read_all` does... ```python def read_all(self): """ Read all record batches as a pyarrow.Table. Returns ------- Table """ cdef shared_ptr[CTable] table with nogil: check_status(self.reader.get().ToTable().Value(&table)) return pyarrow_wrap_table(table) ``` I guess it will materialize them at once.. -- 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]
