-
Notifications
You must be signed in to change notification settings - Fork 128
Update time_bucket() API to mention UUIDv7 support #4585
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
base: latest
Are you sure you want to change the base?
Conversation
The time_bucket() function can now bucket UUIDs, so update the docs to mention this feature.
|
Allow 10 minutes from last push for the staging site to build. If the link doesn't work, try using incognito mode instead. For internal reviewers, check web-documentation repo actions for staging build status. Link to build for this PR: http://docs-dev.timescale.com/docs-erimatnor-uuid-time-bucket |
| ORDER BY month_bucket DESC LIMIT 10; | ||
| ``` | ||
|
|
||
| It is possible to compute buckets on version 7 UUIDs that contain a timestamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| It is possible to compute buckets on version 7 UUIDs that contain a timestamp | |
| To compute buckets on version 7 UUIDs that contain a timestamp |
| ``` | ||
|
|
||
| It is possible to compute buckets on version 7 UUIDs that contain a timestamp | ||
| in Unix time format. When bucketing UUIDs, a regular `TIMESTAMP WITH TIME ZONE` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| in Unix time format. When bucketing UUIDs, a regular `TIMESTAMP WITH TIME ZONE` | |
| in Unix time format, run the following: |
| ------------------------ | ||
| 2025-01-01 11:00:00+01 | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you bucketing UUIDs, a regular TIMESTAMP WITH TIME ZONE value is returned.
|
|
||
| It is possible to compute buckets on version 7 UUIDs that contain a timestamp | ||
| in Unix time format. When bucketing UUIDs, a regular `TIMESTAMP WITH TIME ZONE` | ||
| value is returned instead of a UUID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| value is returned instead of a UUID: |
The time_bucket() function can now bucket UUIDs, so update the docs to mention this feature.