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

ES|QL: Adding tests for =~ operator #105410

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

luigidellaquila
Copy link
Contributor

WIP: DO NOT MERGE!

for now this PR also activates field =~ field capabilities (rather than field =~ "literal" as it is now).
This is not our intention for now though, so we'll have to re-enable the validation for literals only and make the tests work.

protected TypeResolution resolveType() {
return TypeResolutions.isString(left(), sourceText(), TypeResolutions.ParamOrdinal.FIRST)
.and(TypeResolutions.isString(right(), sourceText(), TypeResolutions.ParamOrdinal.SECOND))
.and(TypeResolutions.isFoldable(right(), sourceText(), TypeResolutions.ParamOrdinal.SECOND));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to stay for now...

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

Successfully merging this pull request may close these issues.

3 participants