Skip to content

feat(spec, api, catalog): add Catalog::list_partitions[_paged] for RESTCatalog#288

Open
plusplusjiajia wants to merge 2 commits intoapache:mainfrom
plusplusjiajia:list-partitions
Open

feat(spec, api, catalog): add Catalog::list_partitions[_paged] for RESTCatalog#288
plusplusjiajia wants to merge 2 commits intoapache:mainfrom
plusplusjiajia:list-partitions

Conversation

@plusplusjiajia
Copy link
Copy Markdown
Member

Purpose

Add Catalog::list_partitions and list_partitions_paged for catalogs that track partitions via metastore (e.g. RESTCatalog). Mirrors Java
Catalog interface and
AbstractCatalog default impl.

  • spec: new Partition struct (11 fields, JSON wire-format compatible with Java)
  • api: RESTApi::list_partitions[_paged] + ListPartitionsResponse + partitions(db,t) URL builder
  • catalog: trait gains list_partitions[_paged] with default impls (return empty / single full page)
  • catalog/rest: RESTCatalog overrides both, swallowing NotImplemented so callers can fall back to scanning manifest entries

@JingsongLi
Copy link
Copy Markdown
Contributor

It would be best to understand why we need to support this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants