mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
9eeb856519
Right now RemoteInserter does not read ProfileEvents for INSERT, it handles them only after sending the query or on finish. But #37391 sends them for each INSERT block, but sometimes they can be no ProfileEvents packet, since it sends only non-empty blocks. And this adds too much complexity, and anyway ProfileEvents are useless for the server, so let's send them only if the query is initial (i.e. send by user). Note, that it is okay to change the logic of sending ProfileEvents w/o changing DBMS_TCP_PROTOCOL_VERSION, because there were no public releases with the original patch included yet. Fixes: #37391 Refs: #35075 Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
6 lines
302 B
SQL
6 lines
302 B
SQL
-- Tags: no-parallel, long, no-debug, no-tsan
|
|
|
|
create table data_02344 (key Int) engine=Null;
|
|
-- 3e9 rows is enough to fill the socket buffer and cause INSERT hung.
|
|
insert into function remote('127.1', currentDatabase(), data_02344) select number from numbers(3e9) settings prefer_localhost_replica=0;
|