-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Insert into ClickHouse table which use ENGINE = Distributed causes incorrect result #7600
Comments
cc @wgzhao |
@lupengfei-johnson Similar to #7601, the Distributed Table Engine involves multi-node data sharding, and currently the clickhouse connector does not support distributed clickhouse writes |
I have exact the same problem. But when inserttions are done by Spark there are no doubles. So it look like some trino settings are wrong. @wgzhao |
which version you are testing? |
@wgzhao |
Could you describe the ClickHouse deployment environment in detail? |
clickhouse.testdb.test5 uses ENGINE = Distributed , there is 1 row in it.
trino> select * from clickhouse.testdb.test5;
eventdate | counterid | userid | appid
-------------------------+-----------+--------+-------
2021-04-15 19:00:00.000 | 123 | 123 | 123
(1 row)
Insert another row to it
trino> insert into clickhouse.testdb.test5 values(timestamp '2021-04-15 20:00:00',12345,123,123);
INSERT: 1 row
but there is 4 rows in the table.
trino> select * from clickhouse.testdb.test5;
eventdate | counterid | userid | appid
-------------------------+-----------+--------+-------
2021-04-15 19:00:00.000 | 123 | 123 | 123
2021-04-15 19:00:00.000 | 123 | 123 | 123
2021-04-15 20:00:00.000 | 12345 | 123 | 123
2021-04-15 20:00:00.000 | 12345 | 123 | 123
(4 rows)
The text was updated successfully, but these errors were encountered: