Skip to content

Conversation

kderusso
Copy link
Member

We will be adding new functions that require rewriting but that are not full text functions.

This PR does some preliminary refactoring, to add a RewriteableAware interface defining when a function needs to go through the rewrite phase.

if (expr instanceof RewriteableAware rewriteableAware) {
QueryBuilder builder = rewriteableAware.queryBuilder(), initial = builder;
builder = builder == null
? rewriteableAware.asQuery(LucenePushdownPredicates.DEFAULT, TranslatorHandler.TRANSLATOR_HANDLER).toQueryBuilder()
Copy link
Member Author

Choose a reason for hiding this comment

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

The RewriteableAware interface implements TranslationAware to handle asQuery here.

@kderusso kderusso requested a review from ioanatia August 18, 2025 15:00
@kderusso kderusso marked this pull request as ready for review August 18, 2025 15:35
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Aug 18, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@kderusso kderusso requested a review from ioanatia August 19, 2025 14:12
@kderusso kderusso merged commit 8486a63 into elastic:main Aug 20, 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 >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.2.0

3 participants