-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
ESQL: Support loading shapes from source into WKB blocks #104269
Conversation
Documentation preview: |
Hi @iverase, I've created a changelog YAML for you. |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really great. Just need to add ToGeometryTests and ToGeographyTests.
server/src/main/java/org/elasticsearch/index/mapper/AbstractPointGeometryFieldMapper.java
Show resolved
Hide resolved
x-pack/plugin/esql/qa/testFixtures/src/main/resources/spatial_shapes.csv-spec
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/qa/testFixtures/src/main/resources/spatial_shapes.csv-spec
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/PlannerUtils.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/PlannerUtils.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/planner/PlannerUtils.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java
Show resolved
Hide resolved
…planner/PlannerUtils.java Co-authored-by: Craig Taverner <craig@amanzi.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that you have added types/to_geometry.asciidoc
but not the parent to_geometry.asciidoc
that should include that, nor any additions to the function list. Am I missing something, or are the docs incomplete?
That was generated, I did not add it. |
If the "parent" asciidoc file is missing then the docs are incomplete. But that doesn't have a block a huge PR. |
Map.entry(AIRPORTS.indexName, AIRPORTS), | ||
Map.entry(AIRPORTS_WEB.indexName, AIRPORTS_WEB), | ||
Map.entry(COUNTRIES_BBOX.indexName, COUNTRIES_BBOX), | ||
Map.entry(COUNTRIES_BBOX_WEB.indexName, COUNTRIES_BBOX_WEB) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
elastic/elasticsearch#104269 adds geo_shape support to ESQL This PR updates maps ESQL source to support geo_shape column type <img width="800" alt="Screenshot 2024-01-18 at 1 15 31 PM" src="https://github.com/elastic/kibana/assets/373691/844251a6-4409-45f4-89f5-513f4537d833"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
elastic/elasticsearch#104269 adds geo_shape support to ESQL This PR updates maps ESQL source to support geo_shape column type <img width="800" alt="Screenshot 2024-01-18 at 1 15 31 PM" src="https://github.com/elastic/kibana/assets/373691/844251a6-4409-45f4-89f5-513f4537d833"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
elastic/elasticsearch#104269 adds geo_shape support to ESQL This PR updates maps ESQL source to support geo_shape column type <img width="800" alt="Screenshot 2024-01-18 at 1 15 31 PM" src="https://github.com/elastic/kibana/assets/373691/844251a6-4409-45f4-89f5-513f4537d833"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
elastic/elasticsearch#104269 adds geo_shape support to ESQL This PR updates maps ESQL source to support geo_shape column type <img width="800" alt="Screenshot 2024-01-18 at 1 15 31 PM" src="https://github.com/elastic/kibana/assets/373691/844251a6-4409-45f4-89f5-513f4537d833"> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Similarly to #103698, this PR adds support for reading geo_shape and shape fields into wkb blocks so they can use top project the data to the result of a ES|QL query.
One of the points for discussion in this PR is the naming use to the ES|QL fields where geo_shape has been renamed to geography and shape has been renamed to geometry, to follow more closely industry standards. Although this is debatable.
Note to the reviewer: There is a limitation on csv test because they cannot deal with WKT,
Fixes #103586