Skip to content

Conversation

not-napoleon
Copy link
Member

This extracts an abstract base class from LocalPhysicalPlanOptimizerTests to hold the initialization of the planners and other utility methods. This way, classes like ReplaceRoundToWithQueryAndTagsTests can extend from the base class instead of from LocalPhysicalPlanOptimizerTests. Extending from the actual test class results in re-running the tests in that class for each subclass, with no changes. This PR should result in removing about 160 redundant test runs, and make it a little easier to write physical planner tests in separate files.

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Sep 19, 2025
@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.

Thanks Mark.

 Conflicts:
	x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LocalPhysicalPlanOptimizerTests.java
@not-napoleon not-napoleon enabled auto-merge (squash) September 29, 2025 16:21
Copy link
Member

@fang-xing-esql fang-xing-esql left a comment

Choose a reason for hiding this comment

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

Thank you @not-napoleon ! LGTM

@not-napoleon not-napoleon merged commit 202f444 into elastic:main Oct 7, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants