plusplusjiajia opened a new pull request, #288:
URL: https://github.com/apache/paimon-rust/pull/288
### Purpose
Add `Catalog::list_partitions` and `list_partitions_paged` for catalogs that
track partitions via metastore (e.g. `RESTCatalog`). Mirrors Java
[`Catalog`](https://github.com/apache/paimon/blob/release-1.4/paimon-core/src/main/java/org/apache/paimon/catalog/Catalog.java)
interface and
[`AbstractCatalog`](https://github.com/apache/paimon/blob/release-1.4/paimon-core/src/main/java/org/apache/paimon/catalog/AbstractCatalog.java)
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
--
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]