-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Refactor CrossProjectIndexExpressionsRewriter
#135588
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
Refactor CrossProjectIndexExpressionsRewriter
#135588
Conversation
| this(localExpression, List.of()); | ||
| } | ||
|
|
||
| List<String> all() { |
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.
This will disappear once we've removed public static Map<String, List<String>> rewriteIndexExpressions in favor of calling rewriteIndexExpression inside the IndexAbstractionResolver
CrossProjectSearchIndexExpressionRewriterCrossProjectIndexExpressionRewriter
CrossProjectIndexExpressionRewriterCrossProjectIndexExpressionsRewriter
|
Pinging @elastic/es-security (Team:Security) |
|
serverless failure is unrelated |
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
Refactoring pass over
CrossProjectIndexExpressionsRewriterto make it plug into the end-to-end expression rewriting flow (#135346).The main change is isolating the logic of rewriting a single expression into
rewriteIndexExpression. Also, fixes two smaller quirks:"*"we rewrite to_all. There is a marginal difference in behavior between the two and_allbetter matches empty index expression behavior