-
Notifications
You must be signed in to change notification settings - Fork 83
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
Incorrect count result when querying a View over a Distributed table #142
Comments
Hi, thanks for the report. Having the sample cell towers dataset, I tried to do something similar using Metabase 0.45.2 and plugin version 1.0.3:
It produces the same result in the Metabase interface and the standard clickhouse-client. Can you please try upgrading the driver (to at least 0.9.0 as the underlying JDBC driver has been changed there) and then check if the issue persists? Cheers. |
@slvrtrn |
Unfortunately the update didn't help. I installed the latest metabase and the latest clickhouse driver (1.0.3). The problem is reproduced.
P.S. This is very strange, but if you make a request like
then the result is correct and does not change if I repeat it again. |
Thanks for trying it out. That is odd indeed! Could you provide the table structure, maybe with a limited number of fields (the ones used in the query at least), but with exact ClickHouse types? I will generate some dummy data and try to reproduce it on my end. |
Thank you for taking such good care of my question.
|
Thanks. Will have a look. |
I still cannot reproduce this. Here's what I did:
so I'd have some minimal schema setup for this test. I generated 1 million random rows, such as 10 unique partner ids, 100k unique orderIds there running several queries such as
yielded the same result in both Metabase and ClickHouse. I think we are missing something else here... To help with the investigation, could you provide more details:
to speed up the process, maybe you could ping me in the ClickHouse Community Slack |
I have 4 servers with clickhouse version 22.8.4.7.
As a result, if we make a query on the Distributed table (AttributedPartnerOrdersMaterialized), we get the correct data that does not change if we repeat the query. Thanks for pointing out the data model. We have an obvious error. |
is it the case for clickhouse-client as well or only Metabase? |
only Metabase |
Glad to hear that it works for you now. |
HI!
I'm using metabase version 0.44.1 with version clickhouse driver 0.8.3.
Found a problem that a simple query
produces a result 6046, but if you repeat it, it gives 5971.
The numbers are constantly changing.
Through the standard clickhouse-client, the data is given correctly and the same.
In the metabase logs we see only regular lines for this request
The text was updated successfully, but these errors were encountered: