-
Notifications
You must be signed in to change notification settings - Fork 900
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
time_bucket_gapfill
is not working when trying to offset the timestamp
#1435
Comments
I have the same issue. Query in below
|
It's not a compact workaround and ideally I would want gapfill to take an offset as well, but what I've had to resort to is running gapfill first (and depending on your requirements, using smaller buckets - say 1 hour), then wrap that in a CTE and run a query on the CTE where you do a regular time_bucket of 15 hours offset by your desired amount. Here's an example:
|
having the same issue when trying to add |
Any updates on this? |
Experiencing this same issue also |
experiencing the same |
I can't seem to use
|
Same here,
|
@Raphyyy the documentation states that you can't embed time_bucket_gapfill in another function. Though not ideal you can get around it using a CTE, first getting the gapfill values then performing additional transformations afterwards. |
Is there a workaround for getting the time buckets to start at the "origin", like with |
+1 |
Relevant system information:
postgres --version
): 10\dx
inpsql
): 1.4.1Describe the bug
time_bucket_gapfill
is not working when trying to offset the timestamp.To Reproduce
Expected behavior
The same behavior as with time_bucket (except the gap filling)
Actual behavior
The text was updated successfully, but these errors were encountered: