-
Notifications
You must be signed in to change notification settings - Fork 383
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
[#2434] Improvement: if DropXXX success, return true, if not exists return false #3222
Conversation
@mchades would you please help to review this? |
.../catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java
Outdated
Show resolved
Hide resolved
...-common/src/main/java/com/datastrato/gravitino/catalog/jdbc/operation/DatabaseOperation.java
Show resolved
Hide resolved
...dbc-common/src/main/java/com/datastrato/gravitino/catalog/jdbc/operation/TableOperation.java
Show resolved
Hide resolved
...on/src/main/java/com/datastrato/gravitino/catalog/jdbc/operation/JdbcDatabaseOperations.java
Outdated
Show resolved
Hide resolved
...ommon/src/main/java/com/datastrato/gravitino/catalog/jdbc/operation/JdbcTableOperations.java
Outdated
Show resolved
Hide resolved
...g-jdbc-common/src/main/java/com/datastrato/gravitino/catalog/jdbc/JdbcCatalogOperations.java
Show resolved
Hide resolved
Are the changes in |
Yes. |
Update. Please help to review again when you have time~ |
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.
The JavaDoc for methods(dropXxx
) like com.datastrato.gravitino.SupportsMetalakes#dropMetalake
should be reviewed and revised if needed.
.../catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java
Outdated
Show resolved
Hide resolved
...ommon/src/main/java/com/datastrato/gravitino/catalog/jdbc/operation/JdbcTableOperations.java
Outdated
Show resolved
Hide resolved
...on/src/main/java/com/datastrato/gravitino/catalog/jdbc/operation/JdbcDatabaseOperations.java
Outdated
Show resolved
Hide resolved
Updated. Please help to review again when you have time, thanks! |
@mchades Updated. Please help to review again when you have time, thanks! |
.../src/main/java/com/datastrato/gravitino/catalog/doris/converter/DorisExceptionConverter.java
Show resolved
Hide resolved
core/src/main/java/com/datastrato/gravitino/storage/relational/service/CatalogMetaService.java
Outdated
Show resolved
Hide resolved
@charliecheng630 would you please rebase the code? |
api/src/main/java/com/datastrato/gravitino/SupportsMetalakes.java
Outdated
Show resolved
Hide resolved
server/src/test/java/com/datastrato/gravitino/server/web/rest/TestMetalakeOperations.java
Show resolved
Hide resolved
@charliecheng630 can you please also confirm that if anything should be changed in the client side? |
.../src/main/java/com/datastrato/gravitino/catalog/doris/converter/DorisExceptionConverter.java
Outdated
Show resolved
Hide resolved
...ql/src/test/java/com/datastrato/gravitino/catalog/mysql/integration/test/CatalogMysqlIT.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/datastrato/gravitino/storage/relational/service/CatalogMetaService.java
Outdated
Show resolved
Hide resolved
5daefec
to
549860c
Compare
@mchades Rebased & updated. Please help to review again when you have time, thanks! |
...g-jdbc-common/src/main/java/com/datastrato/gravitino/catalog/jdbc/JdbcCatalogOperations.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/datastrato/gravitino/catalog/doris/converter/DorisExceptionConverter.java
Outdated
Show resolved
Hide resolved
...is/src/test/java/com/datastrato/gravitino/catalog/doris/integration/test/CatalogDorisIT.java
Outdated
Show resolved
Hide resolved
...is/src/test/java/com/datastrato/gravitino/catalog/doris/integration/test/CatalogDorisIT.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/datastrato/gravitino/storage/relational/JDBCBackend.java
Outdated
Show resolved
Hide resolved
...is/src/test/java/com/datastrato/gravitino/catalog/doris/integration/test/CatalogDorisIT.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, thanks for your contributions!
…ists return false (apache#3222) ### What changes were proposed in this pull request? When dropping the XXX(Metalake/Catalog/Schema/Table/Fileset/Partition/Topic), if the XXX does not exist, then return false. ### Why are the changes needed? a clear drop behavior of return value and exception thrown. Fix: apache#2434 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? ITs and UTs
What changes were proposed in this pull request?
When dropping the XXX(Metalake/Catalog/Schema/Table/Fileset/Partition/Topic), if the XXX does not exist, then return false.
Why are the changes needed?
a clear drop behavior of return value and exception thrown.
Fix: #2434
Does this PR introduce any user-facing change?
No
How was this patch tested?
ITs and UTs