You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the unexpected behaviour
The TRUNCATE TABLE of a distributed table returns no error but has no effect
How to reproduce
Which ClickHouse server version to use
23.1.3.5
Which interface to use, if matter
clickhouse-client
Non-default settings, if any
A cluster with two shards and 3 replicas per shard: select shard_num,replica_num, host_name from system.clusters where cluster='default' order by host_name;
select count(*) from raw_stage_v2.distributed_nrj_monthdataelecbills ;
1290619
TRUNCATE TABLE raw_stage_v2.distributed_nrj_monthdataelecbills
Query id: d623b90c-09aa-4e69-904a-1f98843ec04a
Ok.
0 rows in set. Elapsed: 0.057 sec.
select count(*) from raw_stage_v2.distributed_nrj_monthdataelecbills ;
1290619
Expected behavior
Truncate all underlying tables of the distributed table and return 0
Error message and/or stacktrace
No errors thrown
Additional context
our internal_replication is set to it's default "false" value, not sure if that matters but in any case a TRUNCATE TABLE with no effect at all is very strange.
The text was updated successfully, but these errors were encountered:
(you don't have to strictly follow this form)
Describe the unexpected behaviour
The TRUNCATE TABLE of a distributed table returns no error but has no effect
How to reproduce
Which ClickHouse server version to use
23.1.3.5
Which interface to use, if matter
clickhouse-client
Non-default settings, if any
A cluster with two shards and 3 replicas per shard:
select shard_num,replica_num, host_name from system.clusters where cluster='default' order by host_name;
CREATE TABLE
statements for all tables involvedExpected behavior
Truncate all underlying tables of the distributed table and return 0
Error message and/or stacktrace
No errors thrown
Additional context
our internal_replication is set to it's default "false" value, not sure if that matters but in any case a TRUNCATE TABLE with no effect at all is very strange.
The text was updated successfully, but these errors were encountered: