Commit 355c774
Support arithmetic operations for dense_vectors: vector version (#140539)
* Support arithmetic operations for dense_vectors: vector version
Adds support for arithmetic operations - '+', '-', '*' and '/' to operands of type dense_vector. The vector dimensions need to match, otherwise the result is null.
Closes #140537
* review comments and tests
1. Refactored DenseVectorsEvaluator to keep make it consise.
2. Minor changes in processing of inputs
3. Added new tests for each of the operation
4. Fix for existing tests
* [CI] Auto commit changes from spotless
* minor updates to address review comments
* Update docs/changelog/140539.yaml
---------
Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>1 parent 11cf8ac commit 355c774
File tree
34 files changed
+1311
-156
lines changed- docs
- changelog
- reference/query-languages/esql
- _snippets/operators/types
- images/functions
- kibana
- definition/operators
- docs/operators
- x-pack/plugin
- esql-core/src/main/java/org/elasticsearch/xpack/esql/core/util
- esql
- qa/testFixtures/src/main
- java/org/elasticsearch/xpack/esql
- resources
- data
- src
- main/java/org/elasticsearch/xpack/esql
- action
- expression/predicate/operator/arithmetic
- test/java/org/elasticsearch/xpack/esql
- analysis
- expression
- function
- predicate/operator/arithmetic
34 files changed
+1311
-156
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 59 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments