Commit a867127
authored
ESQL: extend TranslationAware to all pushable expressions (#120192)
This expands the `TranslationAware` interface for expressions that
support translations to Lucene query and moves the implementations of
these translations from a centralised place (ExpressionTranslators) to
the respective expression classes.
`TranslationAware` has now a subinterface,
`SingleValueTranslationAware`, for expressions that need to implement
the single-value logic (`null` out on MVs). So the `SingleValueQuery`
wrapping no longer needs to be performed explicitly by the implementer.
`TranslationAware` is now part of the
`org.elasticsearch.xpack.esql.capabilities` package, together with the
other interfaces that extensions needs to implement to be used by the
core services (verifier and optimizer). To allow this, some logical
nodes have been moved from core in the ESQL proper (where also
`LucenePushdownPredicates` resides, used by `TranslationAware`).1 parent cbb7c24 commit a867127
File tree
91 files changed
+1178
-1282
lines changed- docs/changelog
- x-pack/plugin
- esql-core/src
- main/java/org/elasticsearch/xpack/esql/core
- expression
- predicate/logical
- planner
- test/java/org/elasticsearch/xpack/esql/core/util
- esql
- qa/testFixtures/src/main
- java/org/elasticsearch/xpack/esql
- resources
- src
- main/java/org/elasticsearch/xpack/esql
- capabilities
- evaluator
- expression
- function
- fulltext
- scalar
- ip
- spatial
- string
- predicate
- fulltext
- logical
- nulls
- operator/comparison
- optimizer/rules
- logical
- local
- physical/local
- parser
- planner
- querydsl/query
- session
- test/java/org/elasticsearch/xpack/esql
- expression
- function
- scalar
- nulls
- predicate
- logical
- optimizer
- rules/logical
- parser
- planner
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
91 files changed
+1178
-1282
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 0 additions & 163 deletions
This file was deleted.
Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments