Skip to content

[8.19] [ES|QL] Suggest all operators in the editor (#223503)#224416

Merged
stratoula merged 1 commit intoelastic:8.19from
stratoula:backport/8.19/pr-223503
Jun 18, 2025
Merged

[8.19] [ES|QL] Suggest all operators in the editor (#223503)#224416
stratoula merged 1 commit intoelastic:8.19from
stratoula:backport/8.19/pr-223503

Conversation

@stratoula
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

## Summary

Closes elastic#216418

This PR is cleaning up the definitions in order to suggest all
operators. We were not suggesting all `LIKE` operators and the `NOT
....` operators.

### Important notes

- Now NOT IN works exactly like IN 🎉

<img width="784" alt="image"
src="https://github.com/user-attachments/assets/e7e96c2a-0f28-4868-919c-9e5995e5f0ce"
/>

- LIKE, NOT LIKE, RLIKE, NOT RLIKE work exactly like LIKE (we were
suggesting like). After this operator is been selected we are suggesting
wrong suggestions but as it is not the purpose of this PR to fix this
and this behavior already exists in main I will add it here
elastic#176033 and we can follow up.

<img width="765" alt="image"
src="https://github.com/user-attachments/assets/bfd3a8af-845a-4aed-b903-214d83e073e0"
/>

### Checklist
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
(cherry picked from commit 825172e)

# Conflicts:
#	src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts
#	src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/generated/operators.ts
@stratoula stratoula requested a review from kibanamachine as a code owner June 18, 2025 12:26
@stratoula stratoula added the backport This PR is a backport of another PR label Jun 18, 2025
@stratoula stratoula enabled auto-merge (squash) June 18, 2025 12:26
@stratoula stratoula disabled auto-merge June 18, 2025 15:26
@stratoula stratoula merged commit f4b93b2 into elastic:8.19 Jun 18, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

1 participant