ananthaksr opened a new pull request, #1229:
URL: https://github.com/apache/iceberg-rust/pull/1229

   Allow configuring S3Tables catalog type in the playground CLI config.
   
   ## Which issue does this PR close?
   
   Closes https://github.com/apache/iceberg-rust/issues/1161
   
   ## What changes are included in this PR?
   
   Adds parsing for `type = "s3tables"` in `cli/src/catalog.rs`, handling 
`table_bucket_arn`, optional `endpoint_url`, and `props`. Instantiates the 
`S3TablesCatalog` and wraps it for DataFusion integration.
   
   This enables testing S3Tables interactions via the playground using TOML 
configuration like:
   
   ```
   [[catalogs]]
   name = "s3tables_catalog"
   type = "s3tables"
   
   [catalogs.config]
   endpoint_url = "https://s3tables.<region>.amazonaws.com"
   table_bucket_arn = "arn:aws:s3:<region>:<account>:bucket/<bucket_name>"
   
   [catalogs.config.props]
   aws_region = "<region>"
   "s3.region" = "<region>"
   "s3.access-key-id" = "<access-key-id>"
   "s3.secret-access-key" = "<secret-access-key>"
   "s3.session-token" = "<session-token>"
   profile_name = "<profile>"
   ```
   
   ## Are these changes tested?
   
   Tested locally using both rest and s3tables catalog
   
   ```
   $ cargo run --package iceberg-cli --bin iceberg-cli
   
   > SHOW TABLES;
   
   > SELECT * FROM my_catalog.my_namespace.my_table LIMIT 10;
   
   ```
   
   


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