HyunWooZZ commented on issue #1952: URL: https://github.com/apache/iceberg-python/issues/1952#issuecomment-2847405490
Thanks for replying, @Fokko! Yes :) I'm definitely interested in fixing the above. Yesterday, I found something related to the above log: However, is it our responsibility to handle that log in this project? https://github.com/apache/arrow/blob/main/python/pyarrow/_fs.pyx ``` python def get_file_info(self, paths_or_selector): """ Get info for the given files. Any symlink is automatically dereferenced, recursively. A non-existing or unreachable file returns a FileStat object and has a FileType of value NotFound. An exception indicates a truly exceptional condition (low-level I/O error, etc.). Parameters ---------- paths_or_selector : FileSelector, path-like or list of path-likes Either a selector object, a path-like object or a list of path-like objects. The selector's base directory will not be part of the results, even if it exists. If it doesn't exist, use `allow_not_found`. Returns ------- FileInfo or list of FileInfo Single FileInfo object is returned for a single path, otherwise a list of FileInfo objects is returned. Examples -------- >>> local <pyarrow._fs.LocalFileSystem object at ...> >>> local.get_file_info("/{}/pyarrow-fs-example.dat".format(local_path)) <FileInfo for '/.../pyarrow-fs-example.dat': type=FileType.File, size=4> """ cdef: CFileInfo info c_string path vector[CFileInfo] infos vector[c_string] paths CFileSelector selector if isinstance(paths_or_selector, FileSelector): with nogil: selector = (<FileSelector>paths_or_selector).selector infos = GetResultValue(self.fs.GetFileInfo(selector)) elif isinstance(paths_or_selector, (list, tuple)): paths = [_path_as_bytes(s) for s in paths_or_selector] with nogil: infos = GetResultValue(self.fs.GetFileInfo(paths)) elif isinstance(paths_or_selector, (bytes, str)): path =_path_as_bytes(paths_or_selector) with nogil: info = GetResultValue(self.fs.GetFileInfo(path)) return FileInfo.wrap(info) else: raise TypeError('Must pass either path(s) or a FileSelector') return [FileInfo.wrap(info) for info in infos] ``` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org