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

[QUESTION]: How to escape in the expression? #2525

Open
2 tasks done
xiaofan-luan opened this issue Apr 18, 2024 · 3 comments
Open
2 tasks done

[QUESTION]: How to escape in the expression? #2525

xiaofan-luan opened this issue Apr 18, 2024 · 3 comments
Assignees

Comments

@xiaofan-luan
Copy link
Contributor

Is your question answered elsewhere?

What is your question?

I want the document of boolean expression explain more about escape and how to do escape on complicated scenarios

like what is difference between _suffix and _suffix? How to escape "" and '' in a string.

Anything else?

No response

@xiaofan-luan
Copy link
Contributor Author

/assign @xiaocai2333

@xiaocai2333
Copy link
Contributor

xiaocai2333 commented Apr 20, 2024

In milvus, if you want to match a string in an expression. Some special symbols need to be escaped. including but not limited to:

  1. Various special characters, such as "\n", "\t", etc.
  2. The expression supports ' or " to represent a string. The string contains the following characters:
  • Additional same quotes need to be escaped. For example 'xxx\'xxx', "xxx\"xxx".
  • By including additional distinct quotes, escaping can be omitted. For example 'xxx"xxx', "xxx'xxx".

Note:
% and _ in the string corresponding to the like expression do not support escaping and will be considered wildcard characters.

@xiaofan-luan
Copy link
Contributor Author

after talk to @longjiquan
this seems to be a expect behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants