Skip to content

test: add test_collection_ddl cases#314

Open
liututu12 wants to merge 6 commits intoalibaba:mainfrom
liututu12:test/test_ddl
Open

test: add test_collection_ddl cases#314
liututu12 wants to merge 6 commits intoalibaba:mainfrom
liututu12:test/test_ddl

Conversation

@liututu12
Copy link
Copy Markdown
Collaborator

1.Create index functionality to supplement support for all data types, index methods, and metric combinations, as well as       unsupported scenarios;
2.Supplement test cases for the collection.optimize method;
3.After any DDL operation (creating an index, adding/modifying/deleting a column, collection.flush(), optimize(),
etc.), close the collection, reopen it, and write data to check if this process works correctly.

@liututu12 liututu12 requested a review from zhourrr April 3, 2026 09:35
@liututu12 liututu12 self-assigned this Apr 3, 2026
@liututu12 liututu12 requested a review from Cuiyus as a code owner April 3, 2026 09:35
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@zhourrr zhourrr added the deferred valid issue but not prioritized for current milestone. Planned for future release. label Apr 20, 2026
FlatIndexParam(),
FlatIndexParam(metric_type=MetricType.IP, quantize_type=QuantizeType.INT4),
FlatIndexParam(metric_type=MetricType.L2, quantize_type=QuantizeType.INT8),
FlatIndexParam(metric_type=MetricType.COSINE, quantize_type=QuantizeType.FP16),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why remove this case?

from params_helper import *
import threading, time

indextest_collection_schema = zvec.CollectionSchema(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not use full_schema in fixture_helper?

)


def batchdoc_and_check(collection: Collection, multiple_docs, operator="insert"):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why are there so many places with batchdoc_and_check? Why not unify them?

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

Labels

deferred valid issue but not prioritized for current milestone. Planned for future release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants