Skip to content
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

Filtering not working properly #29

Open
artshpakov opened this issue Jul 9, 2019 · 1 comment
Open

Filtering not working properly #29

artshpakov opened this issue Jul 9, 2019 · 1 comment

Comments

@artshpakov
Copy link

artshpakov commented Jul 9, 2019

While in clickhouse console:

SELECT count()
FROM tracks
WHERE date = '2019-07-09'

┌─count()─┐
│ 4162001 │
└─────────┘

And Rails log shows

DEBUG -- : SELECT count() FROM tracks WHERE date = '2019-07-09'
DEBUG -- : [{"count()"=>0}]

The gem seems to be abandoned, but I'll drop this here anyway as a warning.

@artshpakov artshpakov changed the title Filtering by date field is not working Filtering not working properly Nov 5, 2019
@shlima
Copy link

shlima commented Nov 9, 2019

I've just made an alternative, very similar to this one:

ClickHouse.connection.select_value(' SELECT count(*) FROM tracks WHERE date = '2019-07-09'')
#=> 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants