Skip to content

feat: Add rest catalog support for playground #1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

liurenjie1024
Copy link
Contributor

Which issue does this PR close?

What changes are included in this PR?

Add support for rest catalog.

Are these changes tested?

UT.

sdd
sdd previously approved these changes Apr 17, 2025
Copy link
Contributor

@sdd sdd left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏼

Xuanwo
Xuanwo previously approved these changes Apr 17, 2025
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you for building this!

@Xuanwo
Copy link
Member

Xuanwo commented Apr 17, 2025

The only thing left is the conflicts.

@Xuanwo Xuanwo dismissed stale reviews from sdd and themself via 7497bc5 April 17, 2025 09:21
@liurenjie1024
Copy link
Contributor Author

cc @Xuanwo @sdd I've resolved conflicts, PTAL

@liurenjie1024 liurenjie1024 changed the title feat: Add rest catalog support for cli feat: Add rest catalog support for playground Apr 18, 2025
Comment on lines +18 to +37
[[catalogs]]
name = "demo"
type = "rest"
uri = "http://localhost:8080"
warehouse = "s3://iceberg-demo"

[catalogs.props]
"s3.endpoint" = "http://localhost:9000"
"s3.access_key_id" = "admin"


[[catalogs]]
name = "demo2"
type = "rest"
uri = "http://localhost2:8080"
warehouse = "s3://iceberg-demo2"

[catalogs.props]
"s3.endpoint" = "http://localhost2:9090"
"s3.access_key_id" = "admin2"
Copy link
Member

Choose a reason for hiding this comment

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

Can we use a format like this:
i.e., put name in the table, instead using Array of tables. I think this can be more user-friendly.

The main reason is that [catalogs.props] is not very clear which catalog does it belong to.

[catalogs.demo]
type = "rest"
uri = "http://localhost:8080/"
warehouse = "s3://iceberg-demo"

[catalogs.demo.props]
"s3.endpoint" = "http://localhost:9000/"
"s3.access_key_id" = "admin"


[catalogs.demo2]
type = "rest"
uri = "http://localhost2:8080/"
warehouse = "s3://iceberg-demo2"

[catalogs.demo2.props]
"s3.endpoint" = "http://localhost2:9090/"
"s3.access_key_id" = "admin2"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me. I'm planning to close this pr and replace with catalog builder.

@liurenjie1024
Copy link
Contributor Author

Close this pr to replace it with catalog builder api.

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.

Support rest catalog in playground
4 participants