-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Interval columns #16
Interval columns #16
Conversation
Thanks! I'll check PR later. |
Sadly I couldn't setup clickhouse-client locally (OSX) but I guess it'll eventually pass on travis. |
@xzkostyan 3.2 build is failing due to missing setuptools-scm, others are passing. |
tests/columns/test_interval.py
Outdated
] | ||
columns = ', '.join(['INTERVAL {} {}'.format(v, k) | ||
for k, v in interval]) | ||
query = 'SELECT {} FROM system.numbers LIMIT 1'.format(columns) |
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.
You can use 'SELECT {}'
as query template. Query SELECT INTERVAL 1 DAY
works fine without FROM
and LIMIT
clauses.
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.
PR looks good, but please rebase to the latest master. I've dropped python 3.2 support, so all builds should be green now.
@xzkostyan rebase done |
Thanks! |
Resolves #15