cfrancois7 commented on issue #10709:
URL: https://github.com/apache/iceberg/issues/10709#issuecomment-2312056270

    I tried something similar with my local config: 
    
    ```
    from pyiceberg.catalog.sql import SqlCatalog
   from pyiceberg.catalog import load_catalog
   
   warehouse_path = "local_s3"
   catalog = SqlCatalog(
       "catalog_1",
       **{
           "uri": f"sqlite:///{warehouse_path}/catalog.db",
           "warehouse":"s3://iceberg",
           "s3.endpoint": "http://localhost:9001";,
           "s3.access-key-id": "minio_user",
           "s3.secret-access-key": "minio1234",
       },
   )
   catalog.create_namespace_if_not_exists('test')
   ```
   
   And then , the creation of the table raise one error.
   ```
   # Define Schema for Projects Table
   projects_schema = pa.schema([
       pa.field('id', pa.uint8(), nullable=False),
       pa.field('name', pa.string(), nullable=False),
       pa.field('description', pa.string()),
       pa.field('creation_date', pa.timestamp('s')),
       pa.field('modification_date', pa.timestamp('s'))
   ])
   projects_table = catalog.create_table_if_not_exists(
       'test.projects', 
       schema=projects_schema,
   )
   ```
   
   The error:
   ```
   OSError: When getting information for key 
'test.db/projects/metadata/00000-5a3bb77f-7161-4bfe-a7af-b823f6f0cb71.metadata.json'
 in bucket 'iceberg': AWS Error UNKNOWN (HTTP status 400) during HeadObject 
operation: No response body.
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to