-
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
[Bug]: Query failed with double quotes #28365
Comments
you have to do it like 'A "test"' or you have to use Escape character |
/assign @baiyuelanshan /unassign |
@yanliang567 |
/assign @NicoYuan1986 |
Reproduced on v2.2.9 and master-latest. Needs repair. @yanliang567 |
/assign @xiaocai2333 |
@NicoYuan1986 |
Yes. |
@baiyuelanshan If your expression contains a string, the string must be enclosed in double quotes or single quotes. You can try this:
|
if insert "A "test"" or 'A "test"', can search with expr="tag == "A \"test\""" |
I have inserted a string like |
Thank you for bringing up this issue. Our handling of escaped characters in strings wasn't very robust previously. We plan to address this in a future release. |
issue: #28365 Fix bug for parsing error when a string enclosed in single quotes in an expression contains multiple double quotes. such as: ``` expr = "tag == '\"blue\"'" ``` Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
1. modify test cases about output a non-existed field. issue: #28465 2. add cases about creating collection using different language 3. add test case about inserting a string value to a pk(int64) field 4. add test case about search with expression using double quotes. issue: #28365 Signed-off-by: nico <cheng.yuan@zilliz.com>
@xiaocai2333 @NicoYuan1986 can we close this issue now? |
I think it has been fixed. |
Test case |
Is there an existing issue for this?
Environment
Current Behavior
when I used scalar filtering on a varchar fieldd with double quotes, I met an expression error:
code for setting the expression:
searchParam = builder.withExpr("tag == "A "test""").build();
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: