Skip to content
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

Support for Byte and Short as vector tiles value tag #97619

Merged
merged 6 commits into from
Jul 14, 2023

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
@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,

@iverase iverase merged commit 4cffcc0 into elastic:main Jul 14, 2023
12 checks passed
@iverase iverase deleted the addFeature branch July 14, 2023 00:36
@iverase iverase added the auto-backport-and-merge Automatically create backport pull requests and merge when ready label Jul 14, 2023
@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
felixbarny pushed a commit to felixbarny/elasticsearch that referenced this pull request Aug 3, 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.
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 auto-backport-and-merge Automatically create backport pull requests and merge when ready backport pending >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.17.12 v8.9.0 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vector tiles API might drop fields with unsupported field types
4 participants