-
Notifications
You must be signed in to change notification settings - Fork 90
Add 'lookup' as valid index mode for ES|QL lookup joins #936
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
Changes from all commits
114d8a2
f663a28
f5cc518
f46e0a9
d5557d1
b477b79
48c97d1
e73b966
4a71284
89fc4a4
b7a1ca6
3c63320
1bdfbda
8273fa9
52f6ae2
07659ff
97b949e
7aaeeea
5ad154c
d605375
0a27f3a
57d42ce
02f0aa8
844b21b
051ed90
1fe762f
cb5fcfe
388f0b5
3d86c41
ccb22e2
426a3f6
7a9e96d
31b1125
4f0895d
773a8ad
9eca2d8
c0de225
91e8bd2
6142fee
4df4208
272f364
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Feature: ES|QL | ||
| Features related to ES|QL | ||
|
|
||
| @3.4.3 | ||
| Scenario: Installer leverages lookup index mode | ||
| Given the "good_lookup_index" package is installed | ||
| And a policy is created with "good_lookup_index" package and "0.1.4" version | ||
| Then index template "logs-good_lookup_index.foo-template" is configured for "lookup index mode" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,45 @@ | ||
| ## | ||
| ## Describes the specification for a transform's manifest.yml file | ||
| ## | ||
| spec: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have removed the |
||
| type: object | ||
| additionalProperties: false | ||
| definitions: | ||
| index_template: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template" | ||
| properties: | ||
| destination_index_template: | ||
| description: Elasticsearch index template for the transform's destination index | ||
| $ref: "#/definitions/index_template" | ||
| required: false | ||
| start: | ||
| description: Determines if the transform will be started upon installation | ||
| type: boolean | ||
| default: true | ||
| type: object | ||
| additionalProperties: false | ||
| definitions: | ||
| index_template: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template" | ||
| properties: | ||
| destination_index_template: | ||
| description: Elasticsearch index template for the transform's destination index | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| settings: | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| index: | ||
| type: object | ||
| additionalProperties: false | ||
| properties: | ||
| mode: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably add a patch so this is not used on packages with a format version older than 3.4. I will do this in a follow up. |
||
| description: Index mode for lookup indices. | ||
| type: string | ||
| enum: | ||
| - lookup | ||
| codec: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/settings/properties/index/properties/codec" | ||
| mapping: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/settings/properties/index/properties/mapping" | ||
| sort: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/settings/properties/index/properties/sort" | ||
| number_of_shards: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/settings/properties/number_of_shards" | ||
| analysis: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/settings/properties/analysis" | ||
| mappings: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/mappings" | ||
| ingest_pipeline: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/ingest_pipeline" | ||
| data_stream: | ||
| $ref: "../../data_stream/manifest.spec.yml#/properties/elasticsearch/properties/index_template/properties/data_stream" | ||
| required: false | ||
| start: | ||
| description: Determines if the transform will be started upon installation | ||
| type: boolean | ||
| default: true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| dependencies: | ||
| ecs: | ||
| reference: git@v8.17.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Good Lookup Index |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # newer versions go on top | ||
| - version: 0.1.4 | ||
| changes: | ||
| - description: "initital" | ||
| type: bugfix | ||
| link: https://github.com/elastic/integrations/pull/14883 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| --- | ||
| description: "Default empty ingest pipeline for test dataset." | ||
| processors: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| - name: data_stream.type | ||
| type: constant_keyword | ||
| description: Data stream type. | ||
| - name: data_stream.dataset | ||
| type: constant_keyword | ||
| description: Data stream dataset. | ||
| - name: data_stream.namespace | ||
| type: constant_keyword | ||
| description: Data stream namespace. | ||
| - name: '@timestamp' | ||
| type: date | ||
| description: Event timestamp. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| title: "Foo" | ||
| type: metrics |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # README |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - name: "@timestamp" | ||
| type: date | ||
| description: The timestamp. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| start: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| description: "Test transform that always runs and creates an index." | ||
| source: | ||
| index: | ||
| - ".ds-.logs-elasticsearch.deprecation-default-*" | ||
| dest: | ||
| index: test-bar-dest-index | ||
| frequency: 1m | ||
| sync: | ||
| time: | ||
| field: "@timestamp" | ||
| delay: 0s | ||
| pivot: | ||
| group_by: | ||
| "@timestamp": | ||
| date_histogram: | ||
| field: "@timestamp" | ||
| calendar_interval: 1d | ||
| aggregations: | ||
| doc_count: | ||
| value_count: | ||
| field: "_id" | ||
| settings: | ||
| deduce_mappings: false | ||
| unattended: true | ||
| _meta: | ||
| managed: true | ||
| run_as_kibana_system: false | ||
| fleet_transform_version: 0.1.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - name: "@timestamp" | ||
| type: date | ||
| description: The timestamp. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| start: true | ||
| destination_index_template: | ||
| settings: | ||
| index: | ||
| mode: lookup |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| description: "Test transform that always runs and creates an index." | ||
| source: | ||
| index: | ||
| - ".ds-.logs-elasticsearch.deprecation-default-*" | ||
| dest: | ||
| index: test-foo-dest-index | ||
| frequency: 1m | ||
| sync: | ||
| time: | ||
| field: "@timestamp" | ||
| delay: 0s | ||
| pivot: | ||
| group_by: | ||
| "@timestamp": | ||
| date_histogram: | ||
| field: "@timestamp" | ||
| calendar_interval: 1d | ||
| aggregations: | ||
| doc_count: | ||
| value_count: | ||
| field: "_id" | ||
| settings: | ||
| deduce_mappings: false | ||
| unattended: true | ||
| _meta: | ||
| managed: true | ||
| run_as_kibana_system: false | ||
| fleet_transform_version: 0.1.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
|
|
||
| format_version: 3.4.3 | ||
| name: good_lookup_index | ||
| title: "good_lookup_index" | ||
| version: 0.1.4 | ||
| description: "This package tests good_lookup_index" | ||
| type: integration | ||
| categories: | ||
| - cloud | ||
| - custom | ||
| conditions: | ||
| kibana: | ||
| version: "8.18.0" | ||
| elastic: | ||
| subscription: "basic" | ||
| owner: | ||
| github: elastic/customer-architects | ||
| type: elastic |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| errors: | ||
| exclude_checks: | ||
| - SVR00002 |
Uh oh!
There was an error while loading. Please reload this page.