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

[BUG] mapper_parsing_exception: No handler for type [unsigned_long] declared #2083

Closed
slavafomin opened this issue Feb 10, 2022 · 8 comments · Fixed by #6237
Closed

[BUG] mapper_parsing_exception: No handler for type [unsigned_long] declared #2083

slavafomin opened this issue Feb 10, 2022 · 8 comments · Fixed by #6237
Assignees
Labels
feature New feature or request v2.8.0 'Issues and PRs related to version v2.8.0' v3.0.0 Issues and PRs related to version 3.0.0

Comments

@slavafomin
Copy link

Describe the bug
I've tried to create an index field of the type unsigned_long, but got the following error:

ResponseError: mapper_parsing_exception: [mapper_parsing_exception] Reason: No handler for type [unsigned_long] declared on field [field-name]

Host/Environment (please complete the following information):
I'm using latest version of OpenSearch (1.1) managed by AWS.

Additional context
The unsigned_long type is defined in ElasticSearch 7.10 documentation. Isn't OpenSearch based on it?

@slavafomin slavafomin added bug Something isn't working untriaged labels Feb 10, 2022
@dblock
Copy link
Member

dblock commented Feb 10, 2022

According to the Elastic documentation it was part of X-Pack, which was not APLv2. Should we turn this into a feature request?

@CEHENKLE CEHENKLE added feature New feature or request and removed untriaged bug Something isn't working labels Feb 15, 2022
@CEHENKLE
Copy link
Member

@slavafomin Hi! Would you mind adding more information about your use case? Thanks!

@getorca
Copy link

getorca commented May 26, 2022

Just ran into this as well trying to migrate from ES to opensearch. I guess the work around is to use a long?

@ywilkof
Copy link

ywilkof commented May 27, 2022

We have a use case: we are trying to save the result of XXHash algorithm as a number property, and the output of the algorithm is of type unsigned long. These are too big for the long range and these indexing operations fail as a result.

@reta
Copy link
Collaborator

reta commented May 27, 2022

@ywilkof may I ask you please to share a bit more how you use the result of XXHash algorithm, do you search by it fe? The possible options (since the unsigned_long is absent) depend on the way this property is being used, thank you.

@reta
Copy link
Collaborator

reta commented May 27, 2022

Just ran into this as well trying to migrate from ES to opensearch. I guess the work around is to use a long?

Correct, assuming the value fits into signed long interpretation

@robcowart
Copy link

I will add to the use-cases where unsigned values are important.

It is very common for IT observabillity-related metrics to be counters, which by definition are unsigned values. In particular for network devices high-capacity, 64-bit counters are common. While 63-bits (the maximum positive value of a 64-bit signed integer) is a very large value, a 400Gb interface's count of bytes can reach the limit of a long within 3 years. Aggregated links of such interfaces can reach this limit even quicker. Values will fail to be indexed by OpenSearch once this limit is reached. It isn't uncommon for network equipment to run for many years without being upgraded or restarted, so this is more than just a hypothetical problem.

@reta
Copy link
Collaborator

reta commented Jan 31, 2023

@dblock @CEHENKLE will take a look at this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request v2.8.0 'Issues and PRs related to version v2.8.0' v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants