-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL: Push functions to field loads in primaries #138544
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
Conversation
Only push functions into field loads from primary indices. LOOKUP will need an entirely different infrastructure for pushing functions into field loads. Relates to elastic#137679
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
| Map<Attribute.IdIgnoringWrapper, Attribute> addedAttrs = new HashMap<>(); | ||
| return plan.transformDown(LogicalPlan.class, p -> doRule(p, context, addedAttrs)); | ||
| Rule rule = new Rule(context, plan); | ||
| return plan.transformDown(LogicalPlan.class, rule::doRule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need more state for this rule so I made each run of it an object.
carlosdelest
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
...a/org/elasticsearch/xpack/esql/optimizer/rules/logical/local/PushExpressionsToFieldLoad.java
Outdated
Show resolved
Hide resolved
...a/org/elasticsearch/xpack/esql/optimizer/rules/logical/local/PushExpressionsToFieldLoad.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
nik9000
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @carlosdelest !
Only push functions into field loads from primary indices. LOOKUP will need an entirely different infrastructure for pushing functions into field loads. Relates to elastic#137679 Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
Only push functions into field loads from primary indices. LOOKUP will need an entirely different infrastructure for pushing functions into field loads.
Relates to #137679