creechy commented on issue #1113:
URL: 
https://github.com/apache/iceberg-python/issues/1113#issuecomment-2322930679

   @kevinjqliu 
   
   > Do you have an example to reproduce this issue?
   
   I provided an example with a Tabular config to @Fokko, who confirmed that 
PyIceberg does not appear to be switching tokens. FWIW here's the script, 
probably not all that useful, but if you know how to look at the response of 
load_table, you should see a `config` object with a `token` in it, which 
PyIceberg is not using. In my case, the original token does not have the 
necessary privileges to update the table, and so this ends up with a 409 
Conflict instead of succeeding.
   
   ```
   catalog = load_catalog(
       "raw",
       **{
           "type": "rest",
           "uri": "https://api.tabular.io/ws/";,
           "warehouse": "<warehouse>",
           "credential": "<credential>"
       },
   )
   
   table = catalog.load_table("default.buddy")
   
   schema = table.schema().as_arrow()
   
   df = pa.Table.from_pylist(
       [{"s": "Groningen"}], schema=schema
   )
   
   
   table.append(df)
   


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