-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Clickhouse schema weirdness #63
Comments
a lot of these tables have changed over time and they're overdue for a revamp and cleanup. happy to accept a PR for these :) |
Probably related to the issue I'm getting. Now when running dnsmonster with output to clickhouse enabled I'm getting:
Not much information in the output but my guess is the schema is problematic? When I run the |
I've noticed that on a number of the CH tables you are including
timestamp
in the order by. Rather than doing this you should probably have a truncated timestamp such as by minute (or at least truncated to per-second) otherwise there's not much point in the MV's compared to just sampling from the raw table itself.Additionally there are a number of times when you
sum()
a value such asDoBit
which is aUInt8
in the primary table. It would be better to cast those toUInt64
and then sum that to avoid overflows.The text was updated successfully, but these errors were encountered: