You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileFragment can be made more directly useful by adding convenience methods.
For example, a FileFragment could allow underlying file/buffer to be opened directly:
defopen(self):
""" Open a NativeFile of the buffer or file viewed by this fragment. """cdef:
CFileSystem* c_filesystemshared_ptr[CRandomAccessFile] openedNativeFileout = NativeFile()
buf = self.bufferifbufisnotNone:
returnpa.io.BufferReader(buf)
withnogil:
c_filesystem = self.file_fragment.source().filesystem()
opened = GetResultValue(c_filesystem.OpenInputFile(
self.file_fragment.source().path()))
out.set_random_access_file(opened)
out.is_readable = Truereturnout
Additionally, a ParquetFileFragment's metadata could be introspectable:
Antoine Pitrou / @pitrou: @milesgranger Perhaps you would be interested in finding out whether this issue still applies, and if so, to come up with a PR?
FileFragment can be made more directly useful by adding convenience methods.
For example, a FileFragment could allow underlying file/buffer to be opened directly:
Additionally, a ParquetFileFragment's metadata could be introspectable:
Reporter: Ben Kietzman / @bkietz
Assignee: Miles Granger / @milesgranger
PRs and other links:
Note: This issue was originally created as ARROW-8201. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: