HungYangChang commented on issue #1560:
URL: 
https://github.com/apache/iceberg-python/issues/1560#issuecomment-2615926805

   Hi @Fokko 
   
   I have similar question on reading Iceberg table from nessie server
   
   I set up nessie server locally, and I would like to access the Iceberg table.
   
   Here is the output of `response = 
requests.get("http://localhost:19120/api/v1/config";, 
auth=HTTPBasicAuth("test-nessie", "test-nessie"))`
   
   `Response JSON: {'defaultBranch': 'main', 'maxSupportedApiVersion': 2}`
   
   
   
   ```
   from pyiceberg.catalog import load_catalog
   catalog = load_catalog(
       "nessie",
       uri= "http://localhost:19120/api";,
       ref= "main",
       authentication={
           "type": "BASIC",
           "username": "test-nessie",
           "password": "test-nessie"
       }
   )
   ```
   
   This code cannot work due to 2 validation errors for ConfigResponse
   `ConfigResponse` is expect the format 
   ```
   class ConfigResponse(IcebergBaseModel):
       defaults: Properties = Field()
       overrides: Properties = Field()
   ```
   However, the output is defaultBranch and maxSupportedApiVersion
   Any thoughts on how to read local server?


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