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

[Improve][Connector-V2] Optimize milvus code #7691

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

corgy-w
Copy link
Contributor

@corgy-w corgy-w commented Sep 19, 2024

Purpose of this pull request

Optimized milvus connector part code logic

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

Comment on lines +351 to 355
if (!tableExists(tablePath) && !ignoreIfNotExists) {
throw new TableNotExistException(catalogName, tablePath);
}
this.client.dropCollection(
DropCollectionParam.newBuilder()
Copy link
Member

Choose a reason for hiding this comment

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

if ignoreIfNotExists == true, why we should continue execute dropCollection?

@@ -358,6 +361,9 @@ public void dropTable(TablePath tablePath, boolean ignoreIfNotExists)
@Override
public void createDatabase(TablePath tablePath, boolean ignoreIfExists)
throws DatabaseAlreadyExistException, CatalogException {
if (databaseExists(tablePath.getDatabaseName()) && !ignoreIfExists) {
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@@ -372,6 +378,9 @@ public void createDatabase(TablePath tablePath, boolean ignoreIfExists)
@Override
public void dropDatabase(TablePath tablePath, boolean ignoreIfNotExists)
throws DatabaseNotExistException, CatalogException {
if (!databaseExists(tablePath.getDatabaseName()) && !ignoreIfNotExists) {
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants