-
Notifications
You must be signed in to change notification settings - Fork 13
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
$__dateFilter macro excludes same day data #275
Comments
I understand that we round NOW to the day to enable QRR queries. I like this idea, and think that we should round to the next day, and not the previous day. |
I think that this is the change that we want, but I don't have a test environment setup currently (so it is untested).
|
Hello, I was wondering if there were any updates on whether this issue will be worked on? AMG customers are hoping for a fix. Thank you |
Hi, are there any updates on progress for this issue? Amazon Managed Grafana customers are looking to get this fixed. Thanks! |
Is this issue being worked on ? |
@sarahzinger are there concerns with changing the behavior? it looks like this was going to be prioritized then re-backlogged |
Hey folks, I'll bring this back to the team to see if we can prioritize a fix for this over the next few weeks. I suppose some concerns about implementing this as is are that would technically be a breaking change? But perhaps everyone wants this breaking change? Another alternative could be that we create a new macro with the functionality that has been requested here, and document the existing one to explain this functionality limitation. |
What happened:
WHERE $__dateFilter(timestamp) AND
produces athena query logicWHERE timestamp BETWEEN date '2023-08-08' AND date '2023-09-08'
for time interval NOW and NOW -30D. 2023-09-08 is today's date, and corresponds to HH:MM:SS of 00:00:00. This means that queries are only searching data from2023-09-07 23:59:59.999999
(the day before), and will never include data made on the same day. Therefore, I never see same day data on the dashboards.What you expected to happen:
The Amazon Athena Service supports arbitrary timestamps in the future (today's date + N days is acceptable). When I run an Athena query and use the
$__dateFilter
macro, I would expect the query to generate todays date + 1 day. If today is 09/08/2023, I would expect the query to generate:WHERE timestamp BETWEEN date '2023-08-08' AND date '2023-09-09'
.Environment:
The text was updated successfully, but these errors were encountered: