djouallah opened a new issue, #2328:
URL: https://github.com/apache/iceberg-python/issues/2328

   ### Feature Request / Improvement
   
   this works in delta
   
   ```
   from deltalake import write_deltalake
   import duckdb
   duckdb.sql(f""" CREATE or replace SECRET onelake ( TYPE AZURE, PROVIDER 
ACCESS_TOKEN, ACCESS_TOKEN '{os.getenv('azure_storage_token')}')   """)
   write_deltalake(
           
f"abfss://[email protected]/external.Lakehouse/Files/xxxx",
               df,
               mode ='overwrite'
       )
   ```
   this should works too in pyiceberg
   
   ```
   from pyiceberg.catalog.sql import SqlCatalog
   catalog = SqlCatalog(
         "default",
         **{
             "uri": "sqlite:///:memory:",
             "adls.account-name"         : 'onelake' ,
             "token"  : token ,
             "legacy-current-snapshot-id": True ,
             "warehouse"                 : 
"abfss://[email protected]/external.Lakehouse/Files"
         },
                           )
   db = "aemo"
   catalog.create_namespace_if_not_exists(db)
   calendar = 
catalog.create_table_if_not_exists(db+"."+"calendar",schema=df.schema)
   calendar.overwrite(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: [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