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
incorrect pagination with date_histogram and format in composite aggregation #68963
Comments
similar to #65685 |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
I did some testing with this, and I think the problem is that you're using a time zone with epoch_seconds. It's probably a bug that we even allow you to specify that, since epoch seconds are defined in terms of UTC. But if you remove the time zone in the second query, you'll correctly get no further results. |
Well Thanks, and what should I do, If I want to format my date into seconds with interval "1d" and timezone "Asia/HongKong" instead of UTC?
|
So I'm looking into fixing the bug with My best suggestion for a work around is to use a different format, and convert to epoch seconds on the client side. If you use something like |
Yes, your suggestion is what we are doing for a work around, convert |
ES Version
Doing a composite aggregation on date_histogram source with
format:epoch_second
param seems to exhibit some inconsistent behavior:My testing mapping is:
And data (and use POST _bulk):
Running:
will return the the correct all (3 in this case) buckets and the latter as the search after key:
will return excess values, and the after_key go stuck:
The text was updated successfully, but these errors were encountered: