Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Jul 12, 2023

Byte and short data types are not supported by the vector tiles specification. If a user tries to add one of those, it actually gets ignored. This PR proposes to add those values by casting them as integers. In addition it will throw an exception if the value added is a type it cannot understand so it is not silently ignored.

fixes #97612

@iverase iverase added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.10.0 v8.9.1 v7.17.12 labels Jul 12, 2023
@iverase iverase requested a review from craigtaverner July 12, 2023 14:54
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jul 12, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @iverase, I've created a changelog YAML for you.

@iverase iverase changed the title Support for Byte and Short as vector tiles features Support for Byte and Short as vector tiles value tag Jul 12, 2023
Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Would be nice to have an integration test for this too though,

@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.9
7.17 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 97619

iverase added a commit to iverase/elasticsearch that referenced this pull request Jul 14, 2023
Byte and short data types are not supported by the vector tiles specification. If a user tries to add one of those, it actually gets ignored. This add s support to those values by casting them as integers. In addition it will throw an exception if the value added is a type it cannot understand so it is not silently ignored.
iverase added a commit to iverase/elasticsearch that referenced this pull request Jul 14, 2023
Byte and short data types are not supported by the vector tiles specification. If a user tries to add one of those, it actually gets ignored. This add s support to those values by casting them as integers. In addition it will throw an exception if the value added is a type it cannot understand so it is not silently ignored. # Conflicts: #	x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vector-tile/10_basic.yml
elasticsearchmachine pushed a commit that referenced this pull request Jul 14, 2023
Byte and short data types are not supported by the vector tiles specification. If a user tries to add one of those, it actually gets ignored. This add s support to those values by casting them as integers. In addition it will throw an exception if the value added is a type it cannot understand so it is not silently ignored.
elasticsearchmachine pushed a commit that referenced this pull request Jul 14, 2023
…97673) * Port lucene fix github-12352 to Elasticsearch 7.17 * Update docs/changelog/96721.yaml * Support for Byte and Short as vector tiles value tag (#97619) Byte and short data types are not supported by the vector tiles specification. If a user tries to add one of those, it actually gets ignored. This add s support to those values by casting them as integers. In addition it will throw an exception if the value added is a type it cannot understand so it is not silently ignored. # Conflicts: #	x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/vector-tile/10_basic.yml
@rjernst rjernst added v8.9.0 and removed v8.9.1 labels Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes backport pending >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.17.12 v8.9.0 v8.10.0

4 participants