Skip to content
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

[#3966] feat(core): add cloud and region property for catalog #3967

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

mchades
Copy link
Contributor

@mchades mchades commented Jun 25, 2024

What changes were proposed in this pull request?

add cloud.name and cloud.region-code property for catalog

Why are the changes needed?

Fix: #3966

Does this PR introduce any user-facing change?

yes, introduce some limitations of cloud.name property

How was this patch tested?

tests added

@mchades mchades self-assigned this Jun 25, 2024
@@ -15,6 +15,9 @@
@Evolving
public abstract class BaseCatalogPropertiesMetadata extends BasePropertiesMetadata {

public static final String CLOUD_NAME = "cloud.name";
public static final String CLOUD_REGION_CODE = "cloud.region-code";
Copy link
Contributor

Choose a reason for hiding this comment

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

It is better to define these two reserved properties in Catalog interface. So users will know how to use it. Also don't forget to update the doc.

@mchades mchades force-pushed the region-prop branch 2 times, most recently from b580687 to 8928e01 Compare June 26, 2024 08:17
| Property Name | Description | Default Value | Required | Since Version |
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|---------------|
| `cloud.name` | The property to specify the cloud that the catalog is running on. The valid values are `aws`, `azure`, `gcp`, `on_premise` and `other`. | (none) | No | 0.6.0 |
| `cloud.region-code` | The property to specify the region code of the cloud that the caatlog is running on. | (none) | No | 0.6.0 |
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a chapter in gravitino-server-config.md describing about the common catalog properties, maybe you should combine them together.

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you can also move to here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@jerryshao jerryshao merged commit f4e43a8 into apache:main Jun 26, 2024
33 checks passed
@mchades mchades deleted the region-prop branch November 22, 2024 07:32
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.

[Improvement] Support cloud and region property when creating catalog
2 participants