-
Notifications
You must be signed in to change notification settings - Fork 3k
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
test: add test cases #28541
test: add test cases #28541
Conversation
NicoYuan1986
commented
Nov 17, 2023
•
edited
Loading
edited
- modify test cases about output a non-existed field. issue: [Bug]: Search output a non-existed field behaves differently when dynamicField is enabled or not #28465
- add cases about creating collection using different language
- add test case about inserting a string value to a pk(int64) field
- add test case about search with expression using double quotes. issue: [Bug]: Query failed with double quotes #28365
Invalid PR Title Format Detected Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria:
Required Title Structure:
Where Example:
Please review and update your PR to comply with these guidelines. |
@NicoYuan1986 E2e jenkins job failed, comment |
collection_name = cf.gen_unique_str(prefix) | ||
collection_w = self.init_collection_wrap(name=collection_name) | ||
df = cf.gen_default_dataframe_data(1) | ||
df[ct.default_int64_field_name] = ["2000000"] |
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'd suggest gen 100 entities, and update one of them to be a string.
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.
Good advice, I have already changed it.
# 3. search with expression | ||
_id = random.randint(0, default_nb) | ||
string_value[_id] = string_value[_id].replace("\"", "\\\"") | ||
expression = f"{default_string_field_name} == \"{string_value[_id]}\"" |
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.
shall we also add more scenarios for multiple single/double quotes in the inserted string
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.
added.
2fe71df
to
e36db0b
Compare
@NicoYuan1986 E2e jenkins job failed, comment |
1 similar comment
@NicoYuan1986 E2e jenkins job failed, comment |
Signed-off-by: nico <cheng.yuan@zilliz.com>
e36db0b
to
2ed9567
Compare
@NicoYuan1986 E2e jenkins job failed, comment |
/run-cpu-e2e |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: NicoYuan1986, yanliang567 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |