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

[#3601] feat(trino-connector): Support automatically loading catalog to Trino by Trino SQL command #3602

Merged
merged 7 commits into from
May 29, 2024

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented May 28, 2024

What changes were proposed in this pull request?

1、Support automatically loading catalog to Trino by using CREATE CATALOG command
2、Support drop catalog
3、Support update catalog

Why are the changes needed?

Fix: #3601

Does this PR introduce any user-facing change?

NO

How was this patch tested?

NO

@diqiu50 diqiu50 self-assigned this May 28, 2024
@diqiu50 diqiu50 requested review from yuqi1129 and mchades May 28, 2024 06:43
@diqiu50 diqiu50 force-pushed the dynamic-catalog branch from 5f0de29 to 769c288 Compare May 29, 2024 06:49
}

private String generateDropCatalogCommand(String name) throws Exception {
return String.format("DROP CATALOG %s", name);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the catalog name needs double quote?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am trying to use double quotes around the catalog name. I've found some bugs and will be working on them.

@mchades
Copy link
Contributor

mchades commented May 29, 2024

@yuqi1129 overall LGTM, except the retry code, do you want to take another look?

Copy link
Contributor

@yuqi1129 yuqi1129 left a comment

Choose a reason for hiding this comment

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

LGTM

@diqiu50 diqiu50 merged commit d0a9db7 into apache:branch-dynamic-catalog May 29, 2024
22 checks passed
@diqiu50 diqiu50 deleted the dynamic-catalog branch May 29, 2024 12:56
diqiu50 added a commit to diqiu50/gravitino that referenced this pull request May 30, 2024
…talog to Trino by Trino SQL command (apache#3602)

### What changes were proposed in this pull request?

1、Support automatically loading catalog to Trino by using CREATE CATALOG
command
2、Support drop catalog
3、Support update catalog

### Why are the changes needed?

Fix: apache#3601

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

NO
diqiu50 added a commit to diqiu50/gravitino that referenced this pull request May 30, 2024
…talog to Trino by Trino SQL command (apache#3602)

1、Support automatically loading catalog to Trino by using CREATE CATALOG
command
2、Support drop catalog
3、Support update catalog

Fix: apache#3601

NO

NO
jerryshao pushed a commit that referenced this pull request May 31, 2024
…to Trino by Trino SQL command (#3602)

1、Support automatically loading catalog to Trino by using CREATE CATALOG
command
2、Support drop catalog
3、Support update catalog

Fix: #3601

NO

NO
jerryshao pushed a commit that referenced this pull request May 31, 2024
…to Trino by Trino SQL command (#3602)

### What changes were proposed in this pull request?

1、Support automatically loading catalog to Trino by using CREATE CATALOG
command
2、Support drop catalog
3、Support update catalog

### Why are the changes needed?

Fix: #3601

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

NO
diqiu50 added a commit to diqiu50/gravitino that referenced this pull request Jun 13, 2024
…talog to Trino by Trino SQL command (apache#3602)

### What changes were proposed in this pull request?

1、Support automatically loading catalog to Trino by using CREATE CATALOG
command
2、Support drop catalog
3、Support update catalog

### Why are the changes needed?

Fix: apache#3601

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

NO
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.

3 participants