antonioalegria commented on issue #1162:
URL: 
https://github.com/apache/iceberg-python/issues/1162#issuecomment-2454901244

   Well, maybe the bug is different but I'm getting it when doing a load of a 
metadata file when doing scan_iceberg in Polars.
   
   It only happens with certain objects:
   
   ```
   When reading information for key '' in bucket '': AWS Error 
NETWORK_CONNECTION during HeadObject operation: curlCode: 6, Couldn't resolve 
host name
   Traceback (most recent call last):
   
   File "", line 351, in scan_table
   return pl.scan_iceberg(location)
   ^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/.venv/lib/python3.12/site-packages/polars/io/iceberg.py", line 143, 
in scan_iceberg
   source = StaticTable.from_metadata(
   ^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/.venv/lib/python3.12/site-packages/pyiceberg/table/init.py", line 
1693, in from_metadata
   metadata = FromInputFile.table_metadata(file)
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/.venv/lib/python3.12/site-packages/pyiceberg/serializers.py", line 
113, in table_metadata
   with input_file.open() as input_stream:
   ^^^^^^^^^^^^^^^^^
   File "/.venv/lib/python3.12/site-packages/pyiceberg/io/pyarrow.py", line 
270, in open
   input_file = self._filesystem.open_input_file(self._path)
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "pyarrow/_fs.pyx", line 789, in pyarrow._fs.FileSystem.open_input_file
   File "pyarrow/error.pxi", line 155, in 
pyarrow.lib.pyarrow_internal_check_status
   File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
   OSError: When reading information for key '' in bucket '': AWS Error 
NETWORK_CONNECTION during HeadObject operation: curlCode: 6, Couldn't resolve 
host name
   ```
   
   See related issue: https://github.com/apache/arrow/issues/40539


-- 
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

Reply via email to