insert_allow_materialized_columns
If setting is enabled, Allow materialized columns in INSERT.insert_deduplicate
Enables or disables block deduplication ofINSERT (for Replicated* tables).
This setting only takes effect when deduplicate_insert is set to backward_compatible_choice.
Possible values:
- 0 — Disabled.
- 1 — Enabled.
INSERT statement are deduplicated (see Data Replication).
For the replicated tables by default the only 100 of the most recent blocks for each partition are deduplicated (see replicated_deduplication_window, replicated_deduplication_window_seconds).
For not replicated tables see non_replicated_deduplication_window.
insert_deduplication_token
The setting allows a user to provide own deduplication semantic in MergeTree/ReplicatedMergeTree For example, by providing a unique value for the setting in each INSERT statement, user can avoid the same inserted data being deduplicated. Possible values:- Any string
insert_deduplication_token is used for deduplication only when not empty.
For the replicated tables by default the only 100 of the most recent inserts for each partition are deduplicated (see replicated_deduplication_window, replicated_deduplication_window_seconds).
For not replicated tables see non_replicated_deduplication_window.
insert_deduplication_token is tracked per partition, so multiple partitions written by one insert can carry the same token. Without a token, the default content checksum is computed over the whole inserted block, so an insert is deduplicated only when its entire data matches a previous insert (a retry), not when a single partition’s rows happen to coincide with a different insert.insert_null_as_default
Enables or disables the insertion of default values instead of NULL into columns with not nullable data type. If column type is not nullable and this setting is disabled, then insertingNULL causes an exception. If column type is nullable, then NULL values are inserted as is, regardless of this setting.
This setting is applicable to INSERT … SELECT queries. Note that SELECT subqueries may be concatenated with UNION ALL clause.
Possible values:
- 0 — Inserting
NULLinto a not nullable column causes an exception. - 1 — Default column value is inserted instead of
NULL.
insert_shard_id
If not0, specifies the shard of Distributed table into which the data will be inserted synchronously.
If insert_shard_id value is incorrect, the server will throw an exception.
To get the number of shards on requested_cluster, you can check server config or use this query:
- 0 — Disabled.
- Any number from
1toshards_numof corresponding Distributed table.