Skip to content

EQL: Replace ?"..." with """...""" for unescaped strings (#62539) #63174

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

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

matriv
Copy link
Contributor

@matriv matriv commented Oct 2, 2020

Use triple double quotes enclosing a string literal to interpret it
as unescaped, in order to use ? for marking query params and avoid
user confusion. ? also usually implies regex expressions.

Any character inside the """ beginning-closing markings is considered
raw and the only thing that is not permitted is the """ sequence itself.
If a user wants to use that, needs to resort to the normal " string literal
and use proper escaping.

Relates to #61659

(cherry picked from commit d87c2ca)

Use triple double quotes enclosing a string literal to interpret it
as unescaped, in order to use `?` for marking query params and avoid
user confusion. `?` also usually implies regex expressions.

Any character inside the `"""` beginning-closing markings is considered
raw and the only thing that is not permitted is the `"""` sequence itself.
If a user wants to use that, needs to resort to the normal `"` string literal
and use proper escaping.

Relates to elastic#61659

(cherry picked from commit d87c2ca)
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (:Query Languages/EQL)

@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Oct 2, 2020
@matriv matriv merged commit 7d74fb8 into elastic:7.x Oct 2, 2020
@matriv matriv deleted the backport-62539 branch October 2, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/EQL EQL querying backport Team:QL (Deprecated) Meta label for query languages team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants