-
Notifications
You must be signed in to change notification settings - Fork 409
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
[#3601] feat(trino-connector): Support automatically loading catalog to Trino by Trino SQL command #3602
Conversation
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Outdated
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Outdated
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Show resolved
Hide resolved
} | ||
|
||
private String generateDropCatalogCommand(String name) throws Exception { | ||
return String.format("DROP CATALOG %s", name); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Outdated
Show resolved
Hide resolved
@yuqi1129 overall LGTM, except the retry code, do you want to take another look? |
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Outdated
Show resolved
Hide resolved
...onnector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/CatalogRegister.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…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
…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
…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
…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
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