-
Notifications
You must be signed in to change notification settings - Fork 25k
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
"object field starting or ending with a [.] makes object resolution ambiguous" does not appear to be accurate for all inputs #28948
Comments
If I understand this correctly, it is the lack of error in the second case that doesn't make sense to you, correct ? Dots are allowed in field names since 2.4, why would you think the second example should throw an error ? |
@danlevy1 You are correct, this is a bug. The problem is in
So the algorithm in |
Pinging @elastic/es-search-aggs |
@rjernst I will take look more into this. I was actually fixing issue #21862 when I came across this one. I will update this as soon as I take a look at the |
@rjernst Just to confirm, the second example I provided in the bug report should throw the same error that the first example throws. Is this correct? |
Yes, that is correct. |
cc @elastic/es-search-aggs |
@rjernst I have been playing around with different test cases and the method At this point, I can treat the |
In this example, we would call
|
After running ./gradlew check on my fixed code, I am getting two errors.
For the first error, I ran these two tests to see why the error is occurring: Test 1 Input:
Test 1 Output:
Test 2 Input:
Test 2 Output:
When I looked at For the second error, I believe the test is failing because my fix changes the way [.]'s are handled. Here are four test cases: Test 1 Input:
Test 1 Output:
Test 2 Input:
Test 2 Output:
Test 3 Input:
Test 3 Output:
Test 4 Input:
Test 4 Output:
When I looked at Can an Elastic team member please advise me on how to move forward? I don't want to submit a PR until all of these tests pass. @rjernst |
@danlevy1 I'm sorry that it has taken us so long to get back to you. Are you still interested in working on a fix for this issue (and #21862)? If so, it would be great to open a PR with your current approach. You can make a note on the PR that certain tests are failing, and we can discuss how to debug them there. If you'd like, you can open a 'Draft' PR to make it clear it's a work in progress. |
Pinging @elastic/es-search (Team:Search) |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
#Elasticsearch version: 6.2.1
Plugins installed: None
JVM version: 1.8.0_131
OS version: MacOS 10.13
I am running across a few test cases where the following error is not making sense to me.
The first example includes a [.] in front of
foo
. In this case, there is an error that states that there cannot be a [.] at the beginning of the object field:Input:
Output (Error):
This makes sense according to the error.
The second example includes a [.] after
foo
. In this case, there is no error.Input:
Output (Success):
Get (The [.] is included in the field name):
I was looking at the following GitHub / Elasticsearch Discuss Posts
Based on these, it seems like the second example should be throwing the same error as the first example.
The text was updated successfully, but these errors were encountered: