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

[Bug]: When the like expression for query is incorrect, it will not throw an error but instead return an empty result #31967

Closed
1 task done
zhuwenxing opened this issue Apr 7, 2024 · 11 comments
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Milestone

Comments

@zhuwenxing
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version:2.3/2.4/master
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

the expression is "color like \"red\""

the response is empty instead of returning an error

Expected Behavior

should raise error

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

@zhuwenxing zhuwenxing added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 7, 2024
@zhuwenxing
Copy link
Contributor Author

/assign @longjiquan

@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 8, 2024
@yanliang567 yanliang567 added this to the 2.4.0 milestone Apr 8, 2024
@yanliang567 yanliang567 removed their assignment Apr 8, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.0, 2.4.1 Apr 18, 2024
@yanliang567 yanliang567 modified the milestones: 2.4.1, 2.4.2 May 7, 2024
Copy link

stale bot commented Jun 12, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

@stale stale bot added the stale indicates no udpates for 30 days label Jun 12, 2024
@xiaofan-luan
Copy link
Collaborator

why this should return an error?

"color like "red""
seems to be a valid expression

@stale stale bot removed the stale indicates no udpates for 30 days label Jun 13, 2024
Copy link

stale bot commented Jul 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

@stale stale bot added the stale indicates no udpates for 30 days label Jul 14, 2024
@yanliang567
Copy link
Contributor

@longjiquan any comments?

@stale stale bot removed the stale indicates no udpates for 30 days label Jul 15, 2024
@zhuwenxing
Copy link
Contributor Author

why this should return an error?

"color like "red"" seems to be a valid expression

@xiaofan-luan
lack of %

It should be "color like '%red'" , "color like 'red%'" or "color like '%red%'"

@xiaofan-luan
Copy link
Collaborator

even with out %, this could be a valid expr?

@xiaofan-luan
Copy link
Collaborator

you just don't have any data match "red"

@longjiquan
Copy link
Contributor

"color like 'red'" is equal to "color == 'red'"

@longjiquan
Copy link
Contributor

/unassign
/assign @zhuwenxing

@zhuwenxing
Copy link
Contributor Author

ok, I got it. In my previous understanding, I always thought that the "like" expression must be followed by a %.

and yes, it works like ==
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants