-
Notifications
You must be signed in to change notification settings - Fork 316
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 series use case #3502
Time series use case #3502
Conversation
@mneedham is attempting to deploy a commit to the ClickHouse Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
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.
LGTM. Left a few comments.
┌────────────────hour─┬─sum(hits)─┐ | ||
│ 2015-07-01 00:00:00 │ 3 │ <- missing values | ||
│ 2015-07-01 02:00:00 │ 1 │ <- missing values | ||
│ 2015-07-01 04:00:00 │ 1 │ | ||
│ 2015-07-01 05:00:00 │ 2 │ | ||
│ 2015-07-01 06:00:00 │ 1 │ | ||
│ 2015-07-01 07:00:00 │ 1 │ | ||
│ 2015-07-01 08:00:00 │ 3 │ | ||
│ 2015-07-01 09:00:00 │ 2 │ <- missing values | ||
│ 2015-07-01 12:00:00 │ 2 │ | ||
│ 2015-07-01 13:00:00 │ 4 │ | ||
│ 2015-07-01 14:00:00 │ 2 │ | ||
│ 2015-07-01 15:00:00 │ 2 │ | ||
│ 2015-07-01 16:00:00 │ 2 │ | ||
│ 2015-07-01 17:00:00 │ 1 │ | ||
│ 2015-07-01 18:00:00 │ 5 │ | ||
│ 2015-07-01 19:00:00 │ 5 │ | ||
│ 2015-07-01 20:00:00 │ 4 │ | ||
│ 2015-07-01 21:00:00 │ 4 │ | ||
│ 2015-07-01 22:00:00 │ 2 │ | ||
│ 2015-07-01 23:00:00 │ 2 │ | ||
└─────────────────────┴───────────┘ |
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.
I get a slightly different result when I run this query:
┌────────────────hour─┬─sum(hits)─┐ | |
│ 2015-07-01 00:00:00 │ 3 │ <- missing values | |
│ 2015-07-01 02:00:00 │ 1 │ <- missing values | |
│ 2015-07-01 04:00:00 │ 1 │ | |
│ 2015-07-01 05:00:00 │ 2 │ | |
│ 2015-07-01 06:00:00 │ 1 │ | |
│ 2015-07-01 07:00:00 │ 1 │ | |
│ 2015-07-01 08:00:00 │ 3 │ | |
│ 2015-07-01 09:00:00 │ 2 │ <- missing values | |
│ 2015-07-01 12:00:00 │ 2 │ | |
│ 2015-07-01 13:00:00 │ 4 │ | |
│ 2015-07-01 14:00:00 │ 2 │ | |
│ 2015-07-01 15:00:00 │ 2 │ | |
│ 2015-07-01 16:00:00 │ 2 │ | |
│ 2015-07-01 17:00:00 │ 1 │ | |
│ 2015-07-01 18:00:00 │ 5 │ | |
│ 2015-07-01 19:00:00 │ 5 │ | |
│ 2015-07-01 20:00:00 │ 4 │ | |
│ 2015-07-01 21:00:00 │ 4 │ | |
│ 2015-07-01 22:00:00 │ 2 │ | |
│ 2015-07-01 23:00:00 │ 2 │ | |
└─────────────────────┴───────────┘ | |
┌────────────────hour─┬─sum(hits)─┐ | |
│ 2015-07-01 00:00:00 │ 4 │ | |
│ 2015-07-01 01:00:00 │ 2 │ <- missing 02:00:00 | |
│ 2015-07-01 03:00:00 │ 1 │ <- missing 04:00:00 | |
│ 2015-07-01 05:00:00 │ 1 │ | |
│ 2015-07-01 06:00:00 │ 2 │ <- missing 07:00:00 | |
│ 2015-07-01 08:00:00 │ 1 │ | |
│ 2015-07-01 09:00:00 │ 3 │ | |
│ 2015-07-01 10:00:00 │ 2 │ <- missing 11:00:00, 12:00:00 | |
│ 2015-07-01 13:00:00 │ 1 │ | |
│ 2015-07-01 14:00:00 │ 4 │ | |
│ 2015-07-01 15:00:00 │ 2 │ | |
│ 2015-07-01 16:00:00 │ 2 │ | |
│ 2015-07-01 17:00:00 │ 2 │ | |
│ 2015-07-01 18:00:00 │ 1 │ | |
│ 2015-07-01 19:00:00 │ 5 │ | |
│ 2015-07-01 20:00:00 │ 5 │ | |
│ 2015-07-01 21:00:00 │ 4 │ | |
│ 2015-07-01 22:00:00 │ 4 │ | |
│ 2015-07-01 23:00:00 │ 1 │ | |
└─────────────────────┴───────────┘ |
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.
yeh I don't really know how it's picking up the 1 billion rows, it seems to be different each time! I'm not sure how to make it reproducible as there are so many records per date, but we need to include multiple days for some of the queries to return interesting results
┌────────────────hour─┬─sum(hits)─┐ | ||
│ 2015-07-01 00:00:00 │ 3 │ | ||
│ 2015-07-01 01:00:00 │ 0 │ <- new value | ||
│ 2015-07-01 02:00:00 │ 1 │ | ||
│ 2015-07-01 03:00:00 │ 0 │ <- new value | ||
│ 2015-07-01 04:00:00 │ 1 │ | ||
│ 2015-07-01 05:00:00 │ 2 │ | ||
│ 2015-07-01 06:00:00 │ 1 │ | ||
│ 2015-07-01 07:00:00 │ 1 │ | ||
│ 2015-07-01 08:00:00 │ 3 │ | ||
│ 2015-07-01 09:00:00 │ 2 │ | ||
│ 2015-07-01 10:00:00 │ 0 │ <- new value | ||
│ 2015-07-01 11:00:00 │ 0 │ <- new value | ||
│ 2015-07-01 12:00:00 │ 2 │ | ||
│ 2015-07-01 13:00:00 │ 4 │ | ||
│ 2015-07-01 14:00:00 │ 2 │ | ||
│ 2015-07-01 15:00:00 │ 2 │ | ||
│ 2015-07-01 16:00:00 │ 2 │ | ||
│ 2015-07-01 17:00:00 │ 1 │ | ||
│ 2015-07-01 18:00:00 │ 5 │ | ||
│ 2015-07-01 19:00:00 │ 5 │ | ||
│ 2015-07-01 20:00:00 │ 4 │ | ||
│ 2015-07-01 21:00:00 │ 4 │ | ||
│ 2015-07-01 22:00:00 │ 2 │ | ||
│ 2015-07-01 23:00:00 │ 2 │ | ||
└─────────────────────┴───────────┘ |
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.
┌────────────────hour─┬─sum(hits)─┐ | |
│ 2015-07-01 00:00:00 │ 3 │ | |
│ 2015-07-01 01:00:00 │ 0 │ <- new value | |
│ 2015-07-01 02:00:00 │ 1 │ | |
│ 2015-07-01 03:00:00 │ 0 │ <- new value | |
│ 2015-07-01 04:00:00 │ 1 │ | |
│ 2015-07-01 05:00:00 │ 2 │ | |
│ 2015-07-01 06:00:00 │ 1 │ | |
│ 2015-07-01 07:00:00 │ 1 │ | |
│ 2015-07-01 08:00:00 │ 3 │ | |
│ 2015-07-01 09:00:00 │ 2 │ | |
│ 2015-07-01 10:00:00 │ 0 │ <- new value | |
│ 2015-07-01 11:00:00 │ 0 │ <- new value | |
│ 2015-07-01 12:00:00 │ 2 │ | |
│ 2015-07-01 13:00:00 │ 4 │ | |
│ 2015-07-01 14:00:00 │ 2 │ | |
│ 2015-07-01 15:00:00 │ 2 │ | |
│ 2015-07-01 16:00:00 │ 2 │ | |
│ 2015-07-01 17:00:00 │ 1 │ | |
│ 2015-07-01 18:00:00 │ 5 │ | |
│ 2015-07-01 19:00:00 │ 5 │ | |
│ 2015-07-01 20:00:00 │ 4 │ | |
│ 2015-07-01 21:00:00 │ 4 │ | |
│ 2015-07-01 22:00:00 │ 2 │ | |
│ 2015-07-01 23:00:00 │ 2 │ | |
└─────────────────────┴───────────┘ | |
┌────────────────hour─┬─sum(hits)─┐ | |
│ 2015-07-01 00:00:00 │ 4 │ | |
│ 2015-07-01 01:00:00 │ 2 │ | |
│ 2015-07-01 02:00:00 │ 0 │ <- filled value | |
│ 2015-07-01 03:00:00 │ 1 │ | |
│ 2015-07-01 04:00:00 │ 0 │ <- filled value | |
│ 2015-07-01 05:00:00 │ 1 │ | |
│ 2015-07-01 06:00:00 │ 2 │ | |
│ 2015-07-01 07:00:00 │ 0 │ <- filled value | |
│ 2015-07-01 08:00:00 │ 1 │ | |
│ 2015-07-01 09:00:00 │ 3 │ | |
│ 2015-07-01 10:00:00 │ 2 │ | |
│ 2015-07-01 11:00:00 │ 0 │ <- filled value | |
│ 2015-07-01 12:00:00 │ 0 │ <- filled value | |
│ 2015-07-01 13:00:00 │ 1 │ | |
│ 2015-07-01 14:00:00 │ 4 │ | |
│ 2015-07-01 15:00:00 │ 2 │ | |
│ 2015-07-01 16:00:00 │ 2 │ | |
│ 2015-07-01 17:00:00 │ 2 │ | |
│ 2015-07-01 18:00:00 │ 1 │ | |
│ 2015-07-01 19:00:00 │ 5 │ | |
│ 2015-07-01 20:00:00 │ 5 │ | |
│ 2015-07-01 21:00:00 │ 4 │ | |
│ 2015-07-01 22:00:00 │ 4 │ | |
│ 2015-07-01 23:00:00 │ 1 │ | |
└─────────────────────┴───────────┘ |
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Time-series use case