diff --git a/docs/en/engines/table-engines/special/distributed.md b/docs/en/engines/table-engines/special/distributed.md index c3b8a2f20480..4e0ee9bfcc97 100644 --- a/docs/en/engines/table-engines/special/distributed.md +++ b/docs/en/engines/table-engines/special/distributed.md @@ -74,6 +74,10 @@ Specifying the `sharding_key` is necessary for the following: `fsync_directories` - do the `fsync` for directories. Guarantees that the OS refreshed directory metadata after operations related to background inserts on Distributed table (after insert, after sending the data to shard, etc.). +#### skip_unavailable_shards + +`skip_unavailable_shards` - If true, ClickHouse silently skips unavailable shards. Shard is marked as unavailable when: 1) The shard cannot be reached due to a connection failure. 2) Shard is unresolvable through DNS. 3) Table does not exist on the shard. Default false. + #### bytes_to_throw_insert `bytes_to_throw_insert` - if more than this number of compressed bytes will be pending for background INSERT, an exception will be thrown. 0 - do not throw. Default 0. @@ -102,6 +106,10 @@ Specifying the `sharding_key` is necessary for the following: `background_insert_max_sleep_time_ms` - same as [distributed_background_insert_max_sleep_time_ms](../../../operations/settings/settings.md#distributed_background_insert_max_sleep_time_ms) +#### flush_on_detach + +`flush_on_detach` - Flush data to remote nodes on DETACH/DROP/server shutdown. Default true. + :::note **Durability settings** (`fsync_...`): diff --git a/docs/en/operations/settings/settings.md b/docs/en/operations/settings/settings.md index ff9ab6851184..5433a2866a29 100644 --- a/docs/en/operations/settings/settings.md +++ b/docs/en/operations/settings/settings.md @@ -3449,7 +3449,7 @@ Has an effect only when the connection is made through the MySQL wire protocol. - 0 - Use `BLOB`. - 1 - Use `TEXT`. -Default value: `0`. +Default value: `1`. ## mysql_map_fixed_string_to_text_in_show_columns {#mysql_map_fixed_string_to_text_in_show_columns} @@ -3460,7 +3460,7 @@ Has an effect only when the connection is made through the MySQL wire protocol. - 0 - Use `BLOB`. - 1 - Use `TEXT`. -Default value: `0`. +Default value: `1`. ## execute_merges_on_single_replica_time_threshold {#execute-merges-on-single-replica-time-threshold} @@ -3710,7 +3710,7 @@ Default value: `0`. ## allow_experimental_live_view {#allow-experimental-live-view} -Allows creation of experimental [live views](../../sql-reference/statements/create/view.md/#live-view). +Allows creation of a deprecated LIVE VIEW. Possible values: @@ -3721,21 +3721,15 @@ Default value: `0`. ## live_view_heartbeat_interval {#live-view-heartbeat-interval} -Sets the heartbeat interval in seconds to indicate [live view](../../sql-reference/statements/create/view.md/#live-view) is alive . - -Default value: `15`. +Deprecated. ## max_live_view_insert_blocks_before_refresh {#max-live-view-insert-blocks-before-refresh} -Sets the maximum number of inserted blocks after which mergeable blocks are dropped and query for [live view](../../sql-reference/statements/create/view.md/#live-view) is re-executed. - -Default value: `64`. +Deprecated. ## periodic_live_view_refresh {#periodic-live-view-refresh} -Sets the interval in seconds after which periodically refreshed [live view](../../sql-reference/statements/create/view.md/#live-view) is forced to refresh. - -Default value: `60`. +Deprecated. ## http_connection_timeout {#http_connection_timeout} diff --git a/docs/en/sql-reference/aggregate-functions/reference/grouparrayintersect.md b/docs/en/sql-reference/aggregate-functions/reference/grouparrayintersect.md new file mode 100644 index 000000000000..5cac88be0731 --- /dev/null +++ b/docs/en/sql-reference/aggregate-functions/reference/grouparrayintersect.md @@ -0,0 +1,50 @@ +--- +slug: /en/sql-reference/aggregate-functions/reference/grouparrayintersect +sidebar_position: 115 +--- + +# groupArrayIntersect + +Return an intersection of given arrays (Return all items of arrays, that are in all given arrays). + +**Syntax** + +``` sql +groupArrayIntersect(x) +``` + +**Arguments** + +- `x` — Argument (column name or expression). + +**Returned values** + +- Array that contains elements that are in all arrays. + +Type: [Array](../../data-types/array.md). + +**Examples** + +Consider table `numbers`: + +``` text +┌─a──────────────┐ +│ [1,2,4] │ +│ [1,5,2,8,-1,0] │ +│ [1,5,7,5,8,2] │ +└────────────────┘ +``` + +Query with column name as argument: + +``` sql +SELECT groupArrayIntersect(a) as intersection FROM numbers; +``` + +Result: + +```text +┌─intersection──────┐ +│ [1, 2] │ +└───────────────────┘ +``` diff --git a/docs/en/sql-reference/aggregate-functions/reference/index.md b/docs/en/sql-reference/aggregate-functions/reference/index.md index 93d4282c32bf..b99d4b06d55d 100644 --- a/docs/en/sql-reference/aggregate-functions/reference/index.md +++ b/docs/en/sql-reference/aggregate-functions/reference/index.md @@ -55,6 +55,7 @@ ClickHouse-specific aggregate functions: - [groupArrayMovingSum](/docs/en/sql-reference/aggregate-functions/reference/grouparraymovingsum.md) - [groupArraySample](./grouparraysample.md) - [groupArraySorted](/docs/en/sql-reference/aggregate-functions/reference/grouparraysorted.md) +- [groupArrayIntersect](./grouparrayintersect.md) - [groupBitAnd](/docs/en/sql-reference/aggregate-functions/reference/groupbitand.md) - [groupBitOr](/docs/en/sql-reference/aggregate-functions/reference/groupbitor.md) - [groupBitXor](/docs/en/sql-reference/aggregate-functions/reference/groupbitxor.md) diff --git a/docs/ru/operations/settings/settings.md b/docs/ru/operations/settings/settings.md index cd949e9e6b1e..a56afda641b4 100644 --- a/docs/ru/operations/settings/settings.md +++ b/docs/ru/operations/settings/settings.md @@ -3258,7 +3258,7 @@ SELECT * FROM test2; ## allow_experimental_live_view {#allow-experimental-live-view} -Включает экспериментальную возможность использования [LIVE-представлений](../../sql-reference/statements/create/view.md#live-view). +Включает устаревшую возможность использования [LIVE-представлений](../../sql-reference/statements/create/view.md#live-view). Возможные значения: - 0 — живые представления не поддерживаются. @@ -3268,21 +3268,15 @@ SELECT * FROM test2; ## live_view_heartbeat_interval {#live-view-heartbeat-interval} -Задает интервал в секундах для периодической проверки существования [LIVE VIEW](../../sql-reference/statements/create/view.md#live-view). - -Значение по умолчанию: `15`. +Устарело. ## max_live_view_insert_blocks_before_refresh {#max-live-view-insert-blocks-before-refresh} -Задает наибольшее число вставок, после которых запрос на формирование [LIVE VIEW](../../sql-reference/statements/create/view.md#live-view) исполняется снова. - -Значение по умолчанию: `64`. +Устарело. ## periodic_live_view_refresh {#periodic-live-view-refresh} -Задает время в секундах, по истечении которого [LIVE VIEW](../../sql-reference/statements/create/view.md#live-view) с установленным автообновлением обновляется. - -Значение по умолчанию: `60`. +Устарело. ## check_query_single_value_result {#check_query_single_value_result} diff --git a/docs/zh/sql-reference/statements/grant.md b/docs/zh/sql-reference/statements/grant.md index 7e7cdbff350c..fea51d590d55 100644 --- a/docs/zh/sql-reference/statements/grant.md +++ b/docs/zh/sql-reference/statements/grant.md @@ -280,9 +280,6 @@ GRANT INSERT(x,y) ON db.table TO john - `ALTER MOVE PARTITION`. 级别: `TABLE`. 别名: `ALTER MOVE PART`, `MOVE PARTITION`, `MOVE PART` - `ALTER FETCH PARTITION`. 级别: `TABLE`. 别名: `FETCH PARTITION` - `ALTER FREEZE PARTITION`. 级别: `TABLE`. 别名: `FREEZE PARTITION` - - `ALTER VIEW` 级别: `GROUP` - - `ALTER VIEW REFRESH`. 级别: `VIEW`. 别名: `ALTER LIVE VIEW REFRESH`, `REFRESH VIEW` - - `ALTER VIEW MODIFY QUERY`. 级别: `VIEW`. 别名: `ALTER TABLE MODIFY QUERY` 如何对待该层级的示例: - `ALTER` 权限包含所有其它 `ALTER *` 的权限 diff --git a/programs/server/config.xml b/programs/server/config.xml index 96036fe48964..f8c4f2bf9fae 100644 --- a/programs/server/config.xml +++ b/programs/server/config.xml @@ -1392,13 +1392,27 @@ - + + + + + + +