-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
SchemaToColumns
for geo_point
types, add ingest integration t…
…ests (#1019) When a `geo_point` field is added to `fieldEncodings`, actually two fields get added: - `my_field.lat` - `my_field.lon` `SchemaToColumns` however tried to find `my_field` in `fieldEncodings` (which was missing; only `my_field.lat` and `my_field.lon` were there). This resulted in creating (incorrect, unused) columns `lat`, `lon` since `internalPropertyName` was empty. Fix the problem by accessing `my_field.lat` and `my_field.lon` keys in `fieldEncodings` instead (which should be there). Add new integration test that checks Quesma's ingest of Kibana sample flights, Kibana sample ecommerce. The tests without "PUT mapping" caught the fixed issue (this is how I found it).
- Loading branch information
1 parent
6b5c479
commit c083bdd
Showing
5 changed files
with
682 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
frontendConnectors: | ||
- name: elastic-ingest | ||
type: elasticsearch-fe-ingest | ||
config: | ||
listenPort: 8080 | ||
- name: elastic-query | ||
type: elasticsearch-fe-query | ||
config: | ||
listenPort: 8080 | ||
backendConnectors: | ||
- name: my-minimal-elasticsearch | ||
type: elasticsearch | ||
config: | ||
url: "http://{{ .elasticsearch_host }}:{{ .elasticsearch_port }}" | ||
user: elastic | ||
password: quesmaquesma | ||
- name: my-clickhouse-instance | ||
type: clickhouse-os | ||
config: | ||
url: clickhouse://{{ .clickhouse_host }}:{{ .clickhouse_port }} | ||
ingestStatistics: true | ||
processors: | ||
- name: my-query-processor | ||
type: quesma-v1-processor-query | ||
config: | ||
indexes: | ||
kibana_sample_data_ecommerce: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"geoip.location": | ||
type: geo_point | ||
"products.manufacturer": | ||
type: text | ||
"products.product_name": | ||
type: text | ||
category: | ||
type: text | ||
manufacturer: | ||
type: text | ||
kibana_sample_data_ecommerce_with_mappings: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"geoip.location": | ||
type: geo_point | ||
"products.manufacturer": | ||
type: text | ||
"products.product_name": | ||
type: text | ||
category: | ||
type: text | ||
manufacturer: | ||
type: text | ||
kibana_sample_data_flights: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"DestLocation": | ||
type: geo_point | ||
"OriginLocation": | ||
type: geo_point | ||
kibana_sample_data_flights_with_mappings: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"DestLocation": | ||
type: geo_point | ||
"OriginLocation": | ||
type: geo_point | ||
"*": | ||
target: | ||
- my-minimal-elasticsearch | ||
- name: my-ingest-processor | ||
type: quesma-v1-processor-ingest | ||
config: | ||
indexes: | ||
kibana_sample_data_ecommerce: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"geoip.location": | ||
type: geo_point | ||
"products.manufacturer": | ||
type: text | ||
"products.product_name": | ||
type: text | ||
category: | ||
type: text | ||
manufacturer: | ||
type: text | ||
kibana_sample_data_ecommerce_with_mappings: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"geoip.location": | ||
type: geo_point | ||
"products.manufacturer": | ||
type: text | ||
"products.product_name": | ||
type: text | ||
category: | ||
type: text | ||
manufacturer: | ||
type: text | ||
kibana_sample_data_flights: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"DestLocation": | ||
type: geo_point | ||
"OriginLocation": | ||
type: geo_point | ||
kibana_sample_data_flights_with_mappings: | ||
target: | ||
- my-clickhouse-instance | ||
schemaOverrides: | ||
fields: | ||
"DestLocation": | ||
type: geo_point | ||
"OriginLocation": | ||
type: geo_point | ||
"*": | ||
target: | ||
- my-minimal-elasticsearch | ||
pipelines: | ||
- name: my-elasticsearch-proxy-read | ||
frontendConnectors: [ elastic-query ] | ||
processors: [ my-query-processor ] | ||
backendConnectors: [ my-minimal-elasticsearch, my-clickhouse-instance ] | ||
- name: my-elasticsearch-proxy-write | ||
frontendConnectors: [ elastic-ingest ] | ||
processors: [ my-ingest-processor ] | ||
backendConnectors: [ my-minimal-elasticsearch, my-clickhouse-instance ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.