Deadlock on executing special kind of query
I try to write a loader from TVS format. So i run the query like
client.Execute("CREATE TEMPORARY TABLE IF NOT EXISTS test_client (id UInt64, name String)"); client.Execute("insert into test_client FORMAT TSV\n");
and got deadlock in client.Execute("insert into test_client FORMAT TSV\n");
The client waits answer from server - the ServerCodes::EndOfStream code. The server also waits something. I think it waits some data. What data format is it waiting? How to send the data that server waiting?
May be it is bug of the clickhouse server.
@OlegGalizin
It is not a bug.
client.Execute("insert into test_client FORMAT TSV 1\tClient1\n2\tClient2");
@Enmk @OlegGalizin Please close it
Ok. It is feature with deadlock. Here should be link to documentation to the feature that this type of query may be used to get column description for example. In OnDataCancelable must return false to prevent the deadlock.