-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Validation does not work properly in rollup with the range across the month #2145
Comments
@git-takyano Could you also paste the JSON query from Horizon please? I think you are applying the downsample function to a query and there is a bug where it won't calculate the query range properly but I want to verify your query, thank you. |
@manolama
|
Oh thanks, different issue then. Yes it looks like the HBase code path isn't validating the downsample range properly. Should be easy to fix. |
- Fix for OpenTSDB#2145. Reworks the downsampling a little bit to catch the cases where we snap to the downsample beyond the query time range. May break some existing queries.
- Fix for OpenTSDB#2145. Reworks the downsampling a little bit to catch the cases where we snap to the downsample beyond the query time range. May break some existing queries.
- Fix for OpenTSDB#2145. Reworks the downsampling a little bit to catch the cases where we snap to the downsample beyond the query time range. May break some existing queries.
There could be a bug in validation of rollup time range.
I found that when using the rollup function with the search range across the month, I get results even if the search period is not the required length.
For example, when I set the rollup to 7d, I would get an error if the search period for the data was not longer than 7 days.
However, if the period is set to something like "6/27 0:00 - 7/1 0:00", the results can be got.
ERROR: "6/20 0:00 - 6/24 0:00"
OK: "6/27 0:00 - 7/1 0:00"
These are both 5days.
I can also get results with the period below.
5/30-6/1
It's only 3days.
I guess that something is wrong with calculating time when start and end date are different months.
The text was updated successfully, but these errors were encountered: