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

Add default parameter supplier for function tests, to avoid calling multiple functions #109969

Conversation

ivancea
Copy link
Contributor

@ivancea ivancea commented Jun 20, 2024

Continuation of #109207 (review)

  • Added a new function with the function test default generators (+ that PR BytesRef modifier)
  • Applied it in all trivial places. That is, where those same functions were being used

The idea here is to be able to easily add extra "test generators" without having to touch everything.

As a next step, we could try to apply them to the remaining functions, and for cases where some testcases don't make sense, add some kind of "disableModifiers={a, b}" parameter. This way, we would declare exclusions instead of inclusions, which is safer.

@ivancea ivancea added >test Issues or PRs that are addressing/adding tests Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v8.15.0 labels Jun 20, 2024
@ivancea ivancea requested a review from nik9000 June 20, 2024 13:20
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Contributor

@bpintea bpintea left a comment

Choose a reason for hiding this comment

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

Finally :)

@ivancea ivancea added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 20, 2024
@ivancea
Copy link
Contributor Author

ivancea commented Jun 20, 2024

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit 9335566 into elastic:main Jun 20, 2024
15 checks passed
@ivancea ivancea deleted the esql/function-tests-generation-default branch June 20, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants