From d8c112d0c0c9bbb52db7bbb8b435211b6c754ca2 Mon Sep 17 00:00:00 2001 From: adevyatova Date: Tue, 3 Aug 2021 12:03:10 +0000 Subject: [PATCH 1/2] Small current fixes --- .../database-engines/materialize-mysql.md | 4 +- .../en/engines/database-engines/replicated.md | 5 + .../functions/other-functions.md | 155 ++++++++++++++++++ .../database-engines/materialize-mysql.md | 7 +- .../ru/engines/database-engines/replicated.md | 4 + 5 files changed, 167 insertions(+), 8 deletions(-) diff --git a/docs/en/engines/database-engines/materialize-mysql.md b/docs/en/engines/database-engines/materialize-mysql.md index 198808fa952..b53e09bba89 100644 --- a/docs/en/engines/database-engines/materialize-mysql.md +++ b/docs/en/engines/database-engines/materialize-mysql.md @@ -3,14 +3,12 @@ toc_priority: 29 toc_title: MaterializeMySQL --- -# MaterializeMySQL {#materialize-mysql} +# [experimental] MaterializeMySQL {#materialize-mysql} Creates ClickHouse database with all the tables existing in MySQL, and all the data in those tables. ClickHouse server works as MySQL replica. It reads binlog and performs DDL and DML queries. -This feature is experimental. - ## Creating a Database {#creating-a-database} ``` sql diff --git a/docs/en/engines/database-engines/replicated.md b/docs/en/engines/database-engines/replicated.md index 575aa9d3ee5..18c39d1754d 100644 --- a/docs/en/engines/database-engines/replicated.md +++ b/docs/en/engines/database-engines/replicated.md @@ -1,3 +1,8 @@ +--- +toc_priority: 40 +toc_title: Replicated +--- + # [experimental] Replicated {#replicated} The engine is based on the [Atomic](../../engines/database-engines/atomic.md) engine. It supports replication of metadata via DDL log being written to ZooKeeper and executed on all of the replicas for a given database. diff --git a/docs/en/sql-reference/functions/other-functions.md b/docs/en/sql-reference/functions/other-functions.md index 30e2e427158..63892bc712c 100644 --- a/docs/en/sql-reference/functions/other-functions.md +++ b/docs/en/sql-reference/functions/other-functions.md @@ -2138,3 +2138,158 @@ Result: - [tcp_port](../../operations/server-configuration-parameters/settings.md#server_configuration_parameters-tcp_port) +## currentProfiles {#current-profiles} + +Short description. + +**Syntax** + +``` sql + +``` + +Alias: ``. (Optional) + +More text (Optional). + +**Arguments** (Optional) + +- `x` — Description. Optional (only for optional arguments). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). +- `y` — Description. Optional (only for optional arguments). Possible values: .Default value: . [Type name](relative/path/to/type/dscr.md#type). + +**Parameters** (Optional, only for parametric aggregate functions) + +- `z` — Description. Optional (only for optional parameters). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). + +**Returned value(s)** + +- Returned values list. + +Type: [Type name](relative/path/to/type/dscr.md#type). + +**Example** + +The example must show usage and/or a use cases. The following text contains recommended parts of an example. + +Input table (Optional): + +``` text +``` + +Query: + +``` sql +``` + +Result: + +``` text +``` + +**See Also** (Optional) + +- [link](#) + +## enabledProfiles {#enabled-profiles} + +Short description. + +**Syntax** + +``` sql + +``` + +Alias: ``. (Optional) + +More text (Optional). + +**Arguments** (Optional) + +- `x` — Description. Optional (only for optional arguments). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). +- `y` — Description. Optional (only for optional arguments). Possible values: .Default value: . [Type name](relative/path/to/type/dscr.md#type). + +**Parameters** (Optional, only for parametric aggregate functions) + +- `z` — Description. Optional (only for optional parameters). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). + +**Returned value(s)** + +- Returned values list. + +Type: [Type name](relative/path/to/type/dscr.md#type). + +**Example** + +The example must show usage and/or a use cases. The following text contains recommended parts of an example. + +Input table (Optional): + +``` text +``` + +Query: + +``` sql +``` + +Result: + +``` text +``` + +**See Also** (Optional) + +- [link](#) + +## defaultProfiles {#default-profiles} + +Short description. + +**Syntax** + +``` sql + +``` + +Alias: ``. (Optional) + +More text (Optional). + +**Arguments** (Optional) + +- `x` — Description. Optional (only for optional arguments). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). +- `y` — Description. Optional (only for optional arguments). Possible values: .Default value: . [Type name](relative/path/to/type/dscr.md#type). + +**Parameters** (Optional, only for parametric aggregate functions) + +- `z` — Description. Optional (only for optional parameters). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). + +**Returned value(s)** + +- Returned values list. + +Type: [Type name](relative/path/to/type/dscr.md#type). + +**Example** + +The example must show usage and/or a use cases. The following text contains recommended parts of an example. + +Input table (Optional): + +``` text +``` + +Query: + +``` sql +``` + +Result: + +``` text +``` + +**See Also** (Optional) + +- [link](#) \ No newline at end of file diff --git a/docs/ru/engines/database-engines/materialize-mysql.md b/docs/ru/engines/database-engines/materialize-mysql.md index b62670bc3c9..d2bef29fc16 100644 --- a/docs/ru/engines/database-engines/materialize-mysql.md +++ b/docs/ru/engines/database-engines/materialize-mysql.md @@ -1,16 +1,13 @@ - --- toc_priority: 29 toc_title: MaterializeMySQL --- -# MaterializeMySQL {#materialize-mysql} +# [экспериментальный] MaterializeMySQL {#materialize-mysql} Создает базу данных ClickHouse со всеми таблицами, существующими в MySQL, и всеми данными в этих таблицах. -Сервер ClickHouse работает как реплика MySQL. Он читает файл binlog и выполняет DDL and DML-запросы. - -`MaterializeMySQL` — экспериментальный движок баз данных. +Сервер ClickHouse работает как реплика MySQL. Он читает файл binlog и выполняет DDL и DML-запросы. ## Создание базы данных {#creating-a-database} diff --git a/docs/ru/engines/database-engines/replicated.md b/docs/ru/engines/database-engines/replicated.md index 62be07f617c..063c19bcebd 100644 --- a/docs/ru/engines/database-engines/replicated.md +++ b/docs/ru/engines/database-engines/replicated.md @@ -1,3 +1,7 @@ +--- +toc_priority: 40 +toc_title: Replicated +--- # [экспериментальный] Replicated {#replicated} From 230f2a8eae6fae6601cce63e4bdc6b0e6fd8d533 Mon Sep 17 00:00:00 2001 From: adevyatova Date: Wed, 4 Aug 2021 10:05:21 +0000 Subject: [PATCH 2/2] Add desc for profiles func --- .../functions/other-functions.md | 120 +----------------- 1 file changed, 6 insertions(+), 114 deletions(-) diff --git a/docs/en/sql-reference/functions/other-functions.md b/docs/en/sql-reference/functions/other-functions.md index 63892bc712c..c5ae91dc3be 100644 --- a/docs/en/sql-reference/functions/other-functions.md +++ b/docs/en/sql-reference/functions/other-functions.md @@ -2145,51 +2145,15 @@ Short description. **Syntax** ``` sql - +currentProfiles() ``` -Alias: ``. (Optional) - -More text (Optional). - -**Arguments** (Optional) - -- `x` — Description. Optional (only for optional arguments). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). -- `y` — Description. Optional (only for optional arguments). Possible values: .Default value: . [Type name](relative/path/to/type/dscr.md#type). - -**Parameters** (Optional, only for parametric aggregate functions) - -- `z` — Description. Optional (only for optional parameters). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). - -**Returned value(s)** +**Returned value** - Returned values list. Type: [Type name](relative/path/to/type/dscr.md#type). -**Example** - -The example must show usage and/or a use cases. The following text contains recommended parts of an example. - -Input table (Optional): - -``` text -``` - -Query: - -``` sql -``` - -Result: - -``` text -``` - -**See Also** (Optional) - -- [link](#) - ## enabledProfiles {#enabled-profiles} Short description. @@ -2197,51 +2161,15 @@ Short description. **Syntax** ``` sql - +enabledProfiles() ``` -Alias: ``. (Optional) - -More text (Optional). - -**Arguments** (Optional) - -- `x` — Description. Optional (only for optional arguments). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). -- `y` — Description. Optional (only for optional arguments). Possible values: .Default value: . [Type name](relative/path/to/type/dscr.md#type). - -**Parameters** (Optional, only for parametric aggregate functions) - -- `z` — Description. Optional (only for optional parameters). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). - -**Returned value(s)** +**Returned value** - Returned values list. Type: [Type name](relative/path/to/type/dscr.md#type). -**Example** - -The example must show usage and/or a use cases. The following text contains recommended parts of an example. - -Input table (Optional): - -``` text -``` - -Query: - -``` sql -``` - -Result: - -``` text -``` - -**See Also** (Optional) - -- [link](#) - ## defaultProfiles {#default-profiles} Short description. @@ -2249,47 +2177,11 @@ Short description. **Syntax** ``` sql - +defaultProfiles() ``` -Alias: ``. (Optional) - -More text (Optional). - -**Arguments** (Optional) - -- `x` — Description. Optional (only for optional arguments). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). -- `y` — Description. Optional (only for optional arguments). Possible values: .Default value: . [Type name](relative/path/to/type/dscr.md#type). - -**Parameters** (Optional, only for parametric aggregate functions) - -- `z` — Description. Optional (only for optional parameters). Possible values: . Default value: . [Type name](relative/path/to/type/dscr.md#type). - -**Returned value(s)** +**Returned value** - Returned values list. Type: [Type name](relative/path/to/type/dscr.md#type). - -**Example** - -The example must show usage and/or a use cases. The following text contains recommended parts of an example. - -Input table (Optional): - -``` text -``` - -Query: - -``` sql -``` - -Result: - -``` text -``` - -**See Also** (Optional) - -- [link](#) \ No newline at end of file