cbb330 commented on PR #2291: URL: https://github.com/apache/iceberg-python/pull/2291#issuecomment-3161060034
overall excited for this PR because I've had to hack around this with an overriden PyArrowFileIO e.g. ```python class HDFSFileIO(PyArrowFileIO): """Simple PyArrowFileIO that defaults paths without scheme to HDFS""" @override def new_input(self, location: str) -> PyArrowFile: """Fix paths without scheme to use HDFS""" if not urlparse(location).scheme and location.startswith('/'): hdfs_host = self.properties.get(HDFS_HOST, 'localhost') hdfs_port = self.properties.get(HDFS_PORT, '9000') location = f'hdfs://{hdfs_host}:{hdfs_port}{location}' return super().new_input(location) ``` -- 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