неверный результат)
попробую
CREATE TABLE default.test_kahan_rep ( id Int32, value Int64, date Date DEFAULT toDate(now())) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/default/test_kahan_rep', '{replica}') PARTITION BY toYYYYMM(date) ORDER BY (date, id) SETTINGS index_granularity = 8192 CREATE TABLE default.test_kahan_dist ( id Int32, value Int64, date Date DEFAULT toDate(now())) ENGINE = Distributed(cluster, default, test_kahan_rep, rand()) INSERT INTO test_kahan_dist (id, value) VALUES (1,100) (2,200), (3,400), (4,500), (6,600), (7,700), (8,800), (9,900) clickhouse-1 :) select sumKahan(value) from test_kahan_dist SELECT sumKahan(value) FROM test_kahan_dist Received exception from server (version 18.14.12): Code: 100. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Unknown packet 227213735 from server 172.19.0.10:9000.
Обсуждают сегодня