Skip to content

feat: introduce catalog api #92

Merged
JingsongLi merged 1 commit intoapache:mainfrom
luoyuxia:catalog-api-v1
Feb 27, 2026
Merged

feat: introduce catalog api #92
JingsongLi merged 1 commit intoapache:mainfrom
luoyuxia:catalog-api-v1

Conversation

@luoyuxia
Copy link
Contributor

@luoyuxia luoyuxia commented Feb 14, 2026

Purpose

Linked issue: close #52

Brief change log

Tests

API and Format

Documentation

options: &mut HashMap<String, String>,
) -> crate::Result<Vec<String>> {
if let Some(pk) = options.remove(PRIMARY_KEY_OPTION) {
if !primary_keys.is_empty() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this affect the the original options? We can work on a clone of options to avoid mutating the original one.

Copy link
Contributor Author

@luoyuxia luoyuxia Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, It'll. I will make the constructor to be private to prevent user using it. Use SchemaBuilder is simpler than the constructor since SchemaBuilder accepts &str and String,

@luoyuxia luoyuxia force-pushed the catalog-api-v1 branch 2 times, most recently from 3fdb6d0 to e1f21c8 Compare February 26, 2026 13:43
/// # Errors
/// * [`crate::Error::DatabaseNotExist`] - database in identifier does not exist.
/// * [`crate::Error::TableNotExist`] - table does not exist.
async fn get_table(&self, identifier: &Identifier) -> Result<Table>;
Copy link
Contributor Author

@luoyuxia luoyuxia Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both iceberg-rust and delta-rust return a rust struct instead of rust trait. And struct is simpler to use than trait. Return struct should also be fine to paimon-rust.

@XiaoHongbo-Hope
Copy link

+1

@JingsongLi JingsongLi merged commit aba8396 into apache:main Feb 27, 2026
7 checks passed
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.

Implement the Catalog API

3 participants