Closed danifullview closed 1 year ago
Hi,
This is a quirk of behavior of ClickHouse itself:
Without async_insert
:
$ clickhouse-client --param_id 5 -q "INSERT INTO test.some_table VALUES ({id:Int32})"
$
With async_insert
:
$ clickhouse-client --param_id 5 -q "INSERT INTO test.some_table SETTINGS async_insert=1 VALUES ({id:Int32})"
Received exception from server (version 23.3.2):
Code: 456. DB::Exception: Received from localhost:9000. DB::Exception: Substitution `id` is not set: While executing WaitForAsyncInsert. (UNKNOWN_QUERY_PARAMETER)
(query: INSERT INTO test.some_table SETTINGS async_insert=1 VALUES ({id:Int32}))
$
I.e. it looks like parameterized queries are not supported with async_insert
This feature looks very interesting for bulk insertion however, do you know which version it was introduced in?
Hi,
When running:
it works as expected.
but when I do:
I get this exception: