Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add generic Iceberg catalog adapter creation to Java / Python (#…
…5754) ### Java, connecting to a RESTCatalog using MinIO ``` import io.deephaven.iceberg.util.*; properties = new HashMap<>(); properties.put("type", "rest"); properties.put("uri", "http://rest:8181"); properties.put("client.region", "us-east-1"); properties.put("s3.access-key-id", "admin"); properties.put("s3.secret-access-key", "password"); properties.put("s3.endpoint", "http://minio:9000"); adapter = IcebergTools.createAdapter("generic-adapter", properties); ``` ### Python, connecting to a RESTCatalog using MinIO ``` from deephaven.experimental import iceberg adapter = iceberg.adapter(name="generic-adapter", properties={ "type" : "rest", "uri" : "http://rest:8181", "client.region" : "us-east-1", "s3.access-key-id" : "admin", "s3.secret-access-key" : "password", "s3.endpoint" : "http://minio:9000" }); ``` ### Java, connecting to AWS Glue NOTE: credentials set in local environment ``` import io.deephaven.iceberg.util.*; properties = new HashMap<>(); properties.put("type", "glue"); properties.put("uri", "s3://lab-warehouse/sales"); adapter = IcebergTools.createAdapter("generic-adapter", properties); ``` ### Python, connecting to AWS Glue NOTE: credentials set in local environment ``` from deephaven.experimental import iceberg adapter = iceberg.adapter(name="generic-adapter", properties={ "type" : "glue", "uri" : "s3://lab-warehouse/sales", "warehouse" : "s3://lab-warehouse/sales", }); ```
- Loading branch information