-
Notifications
You must be signed in to change notification settings - Fork 24.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
SQL: grouping by double casted date value throws exception #37042
Labels
Comments
Pinging @elastic/es-search |
The original repro no longer reproduces the issue because it was partially fixed by #37693. However, I stumbled upon another issue that still triggers the same error in the same place. I was able to reproduce it with this:
|
imotov
added a commit
to imotov/elasticsearch
that referenced
this issue
Mar 7, 2019
When a query is translated into script terms agg where key has a date type, it should generate a terms agg with value_type long instead of date, otherwise the key gets formatted as a string, which confuses hit extractor. Fixes elastic#37042
imotov
added a commit
that referenced
this issue
Mar 8, 2019
When a query is translated into script terms agg where key has a date type, it should generate a terms agg with value_type long instead of date, otherwise the key gets formatted as a string, which confuses hit extractor. Fixes #37042
imotov
added a commit
that referenced
this issue
Mar 11, 2019
When a query is translated into script terms agg where key has a date type, it should generate a terms agg with value_type long instead of date, otherwise the key gets formatted as a string, which confuses hit extractor. Fixes #37042
imotov
added a commit
that referenced
this issue
Mar 11, 2019
When a query is translated into script terms agg where key has a date type, it should generate a terms agg with value_type long instead of date, otherwise the key gets formatted as a string, which confuses hit extractor. Fixes #37042
imotov
added a commit
that referenced
this issue
Mar 12, 2019
When a query is translated into script terms agg where key has a date type, it should generate a terms agg with value_type long instead of date, otherwise the key gets formatted as a string, which confuses hit extractor. Fixes #37042
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test data:
Query and thrown exception:
The text was updated successfully, but these errors were encountered: