Will ClickHouse copy data by insert into ... select
which added when operation already in progress?
PS^ I know it has to do with the level of isolation, but there are a lot of unclear points for ClickHouse.
Will ClickHouse copy data by insert into ... select
which added when operation already in progress?
PS^ I know it has to do with the level of isolation, but there are a lot of unclear points for ClickHouse.
No, clickhouse will only copy data which is present at the start of the execution of the INSERT ... SELECT ...
query.
Yes, ClickHouse supports copying new data from one table to another using the INSERT INTO ... SELECT syntax.
INSERT INTO target_table SELECT * FROM source_table WHERE condition;
Here's how you could write the SQL command:
INSERT INTO former_employees
SELECT * FROM employees
WHERE status = 'Inactive';
In this example:
allow_experimental_transactions
, right? Thus by default transaction will not be used? – Hett Commented Jan 24 at 12:13