-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Arrays of geo_shape
are broken after v2.8.0
#14193
Comments
This was first broken in commit ebe6f2c Demonstrates opensearch-project#14193 Signed-off-by: Kurt McKee <[email protected]>
Thank you for a very detailed report, a YAML REST test, and a bisect, this is super helpful @kurtmckee. Are you trying to fix it? /cc: @heemin32 @navneet1v |
@dblock You're welcome! Unfortunately I won't be able to dive in to fix this (I lack experience with Java). I'm grateful you double-checked, though, to avoid possible duplication of effort! |
Thanks for filing. Looks like a clear bug. @kurtmckee thanks for the investigation and detail provided! |
@navneet1v Could you take a look? |
@kurtmckee on which version of Opensearch you are facing the issue? Can you switch to 2.11/2.13 version of Opensearch? |
This bug is present in all versions of OpenSearch after v2.8.0. I opened a PR, #14196, based off The Jenkins run for that PR shows that STDOUT contains the error I described in this bug report. I backtracked through the Docker images provided by OpenSearch in our test suite until I found that 2.8.0 worked; I then cloned the OpenSearch repo, created the YAML test case, and used |
Can you try one thing, for the geo_shapes field can you try disabling the doc_value using I will go ahead and look into what part of code is creating the issue, because I do know that we can index more than 1 geo_shape in 1 field. |
@navneet1v Thanks for that suggestion. It appears that if I've added an additional commit that also tests # Using the GitHub CLI
gh co 14196
# Using git
git remote add kurtmckee [email protected]:kurtmckee/pr-OpenSearch.git
git fetch kurtmckee
git checkout -b fix-arrays-of-geo_shape-issue-14193 kurtmckee/fix-arrays-of-geo_shape-issue-14193 |
Describe the bug
While investigating whether a product I work on could migrate from ElasticSearch to OpenSearch, I found that OpenSearch support for ingesting arrays of
geo_shape
objects is broken after v2.8.0.Specifically, the error message I get back during ingest is:
I created a YAML test and used
git bisect
between v2.8.0 and v2.9.0 commits to track the issue to commitebe6f2c2878f036cb4c1147683c30091747d7632
, introduced in PRs #4266 and #8301.Related component
Other
To Reproduce
Note
I've opened PR #14196 using a branch containing the YAML test file that demonstrates this issue. An OpenSearch maintainer can pull the changes, add fix commits, and push back to the associated PR.
I'm running the test suite using the following command with an additional YAML file that demonstrates the problem.
YAML file location:
YAML file contents (with comments added only here):
Details
Expected behavior
I expected that I could creating a "location" field with a
geo_shape
mapping and then ingest an array ofgeo_shape
objects. The product I work on uses ElasticSearch 7.10 and arrays ofgeo_shape
objects can be ingested, and this also is how arrays are documented to work:Additional Details
None. I'm just running the test suite with an additional YAML file.
The text was updated successfully, but these errors were encountered: