Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Conversation

@avelanarius
Copy link
Member

@avelanarius avelanarius commented Nov 20, 2024

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).

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" was there)
which resulted in creating (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).
@avelanarius avelanarius requested a review from a team as a code owner November 20, 2024 16:12
@avelanarius avelanarius changed the title Fix SchemaToColumns for geo_point types Fix SchemaToColumns for geo_point types, add ingest integration tests Nov 20, 2024
@avelanarius
Copy link
Member Author

Integration tests passed: https://github.com/QuesmaOrg/quesma/actions/runs/11937331599

@avelanarius avelanarius added this pull request to the merge queue Nov 20, 2024
Merged via the queue into QuesmaOrg:main with commit c083bdd Nov 20, 2024
5 checks passed
@avelanarius avelanarius deleted the fix-latlon-bug branch November 20, 2024 23:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants