alexanderbianchi opened a new pull request, #153: URL: https://github.com/apache/datafusion-iceberg/pull/153
Stacked on #152 for #24. [Review only the session-binding change](https://github.com/alexanderbianchi/datafusion-iceberg-upstream/compare/b7ebcf56f6bf02af8657a8b7d9a80802c2fdb571...d0d2596b7555fe4badb67bfeceb4202178628ff6). The parent branch lives on a fork, so this Apache draft targets `main` and includes the parent commits in GitHub’s Files changed view. ## Bind a catalog to a request Applications can share one `Arc<dyn iceberg::SessionCatalog>` and register a provider for each trusted Iceberg session context. ```rust let reporting = IcebergCatalogProvider::from_session_catalog(shared, iceberg_context) .with_fixed_tables([TableIdent::from_strs(["sales", "orders"])?]) .build().await?; ctx.register_catalog("reporting", Arc::new(reporting)); ``` The private `BoundCatalog` implements `iceberg::Catalog` by forwarding operations to the shared session catalog with the supplied context. The constructor hands it to #152’s existing live builder. Discovery, planning, and commits therefore use the same binding throughout the provider’s lifetime. ## Verification One integration test uses two DataFusion sessions against the same in-memory backend. The writer discovers the namespace, creates a table, and appends a row as Alice. The reader resolves the table and reads the row as Bob. The test records the identity at the Iceberg catalog boundary. Formatting, Clippy with warnings denied, and the locked workspace tests passed locally. The incremental diff touches five files, including the recording test catalog. AI assistance was used to implement and test this draft. -- 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]
