You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "Parasmishra788 (via GitHub)" <gi...@apache.org> on 2026/07/15 09:55:54 UTC

Re: [I] Remove `IcebergCatalogHandler.createTableDirectWithWriteDelegation()` [polaris]

Parasmishra788 commented on issue #4709:
URL: https://github.com/apache/polaris/issues/4709#issuecomment-4979274657

   Hi @dimas-b @adutra  — I'd like to pick this up, starting with the methods listed above.
   
   Reading through IcebergCatalogHandler, the convenience overloads seem to split into two groups:
   
   listTables(Namespace) / listNamespaces(Namespace) / listViews(Namespace) delegate to catalogHandlerUtils() directly, skipping the isFederated branch and the LocalIcebergCatalog pagination path that the paginated overloads (and IcebergCatalogAdapter) actually use. Removing these looks like a clear win — the tests currently exercise a path prod never takes.
   
   The loadTable family (loadTable(id, snapshots), loadTableIfStale, loadTableWithAccessDelegation, loadTableWithAccessDelegationIfStale) all funnel into the 5-arg loadTable with hardcoded arguments, so there's no behavioural divergence — only extra API surface. Inlining them would expand ~16 call sites in AbstractIcebergCatalogHandlerAuthzTest to 5-arg calls plus .get(). Is that the outcome you want, or would a test helper be preferable there?
   
   Plan is to start small with listViews (single call site) to confirm the pattern matches #4725, then listTables / listNamespaces, then the create/load methods in separate PRs. Does that split work for you?


-- 
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-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org