I'm trying to move all contents of table to another table with the same structure. There are many rows, so when I try to execute it like this
insert into target_table select * from source_table;
I get this kind of error:
ClickHouse exception, code: 159; Read timed out
I suppose it tries to load whole SELECT data into RAM and then insert it into table, which is not possible in this case. Is there some specialized ways to do so?
I would not like to select and insert data in cycle by small portions either.
Edit: I am searching for an SQL solution.