Merge pull request #22869 from lehasm/alexey-sm-DOCSUP-8179-remove_control_unicode

DOCSUP-8179: remove control characters
This commit is contained in:
alexey-milovidov 2021-04-14 01:45:35 +03:00 committed by GitHub
commit 1a5149a0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 37 additions and 32 deletions

View File

@ -94,10 +94,10 @@ postgres=# INSERT INTO test (int_id, str, "float") VALUES (1,'test',2);
INSERT 0 1 INSERT 0 1
postgresql> SELECT * FROM test; postgresql> SELECT * FROM test;
int_id | int_nullable | float | str | float_nullable int_id | int_nullable | float | str | float_nullable
--------+--------------+-------+------+---------------- --------+--------------+-------+------+----------------
1 | | 2 | test | 1 | | 2 | test |
(1 row) (1 row)
``` ```
Table in ClickHouse, retrieving data from the PostgreSQL table created above: Table in ClickHouse, retrieving data from the PostgreSQL table created above:

View File

@ -33,7 +33,7 @@ SELECT bitmapBuild([1, 2, 3, 4, 5]) AS res, toTypeName(res);
``` text ``` text
┌─res─┬─toTypeName(bitmapBuild([1, 2, 3, 4, 5]))─────┐ ┌─res─┬─toTypeName(bitmapBuild([1, 2, 3, 4, 5]))─────┐
 │ AggregateFunction(groupBitmap, UInt8) │ │ │ AggregateFunction(groupBitmap, UInt8)
└─────┴──────────────────────────────────────────────┘ └─────┴──────────────────────────────────────────────┘
``` ```

View File

@ -437,13 +437,13 @@ A [FixedString(16)](../../sql-reference/data-types/fixedstring.md) data type has
**Example** **Example**
``` sql ``` sql
SELECT murmurHash3_128('example_string') AS MurmurHash3, toTypeName(MurmurHash3) AS type; SELECT hex(murmurHash3_128('example_string')) AS MurmurHash3, toTypeName(MurmurHash3) AS type;
``` ```
``` text ``` text
┌─MurmurHash3──────┬─type────────────┐ ┌─MurmurHash3──────────────────────┬─type───┐
6<EFBFBD>1<1C>4"S5KT<4B>~~q │ FixedString(16) 368A1A311CB7342253354B548E7E7E71 │ String
└──────────────────┴─────────────────┘ └──────────────────────────────────┴────────┘
``` ```
## xxHash32, xxHash64 {#hash-functions-xxhash32} ## xxHash32, xxHash64 {#hash-functions-xxhash32}

View File

@ -65,9 +65,9 @@ postgres=# INSERT INTO test (int_id, str, "float") VALUES (1,'test',2);
INSERT 0 1 INSERT 0 1
postgresql> SELECT * FROM test; postgresql> SELECT * FROM test;
int_id | int_nullable | float | str | float_nullable int_id | int_nullable | float | str | float_nullable
--------+--------------+-------+------+---------------- --------+--------------+-------+------+----------------
1 | | 2 | test | 1 | | 2 | test |
(1 row) (1 row)
``` ```

View File

@ -35,7 +35,7 @@ SELECT bitmapBuild([1, 2, 3, 4, 5]) AS res, toTypeName(res)
``` text ``` text
┌─res─┬─toTypeName(bitmapBuild([1, 2, 3, 4, 5]))─────┐ ┌─res─┬─toTypeName(bitmapBuild([1, 2, 3, 4, 5]))─────┐
 │ AggregateFunction(groupBitmap, UInt8) │ │ │ AggregateFunction(groupBitmap, UInt8)
└─────┴──────────────────────────────────────────────┘ └─────┴──────────────────────────────────────────────┘
``` ```

View File

@ -434,13 +434,13 @@ A [FixedString(16)](../../sql-reference/data-types/fixedstring.md) データ型
**例** **例**
``` sql ``` sql
SELECT murmurHash3_128('example_string') AS MurmurHash3, toTypeName(MurmurHash3) AS type SELECT hex(murmurHash3_128('example_string')) AS MurmurHash3, toTypeName(MurmurHash3) AS type;
``` ```
``` text ``` text
┌─MurmurHash3──────┬─type────────────┐ ┌─MurmurHash3──────────────────────┬─type───┐
6<EFBFBD>1<1C>4"S5KT<4B>~~q │ FixedString(16) 368A1A311CB7342253354B548E7E7E71 │ String
└──────────────────┴─────────────────┘ └──────────────────────────────────┴────────┘
``` ```
## xxHash32,xxHash64 {#hash-functions-xxhash32} ## xxHash32,xxHash64 {#hash-functions-xxhash32}

View File

@ -94,10 +94,10 @@ postgres=# INSERT INTO test (int_id, str, "float") VALUES (1,'test',2);
INSERT 0 1 INSERT 0 1
postgresql> SELECT * FROM test; postgresql> SELECT * FROM test;
int_id | int_nullable | float | str | float_nullable int_id | int_nullable | float | str | float_nullable
--------+--------------+-------+------+---------------- --------+--------------+-------+------+----------------
1 | | 2 | test | 1 | | 2 | test |
(1 row) (1 row)
``` ```
Таблица в ClickHouse, получение данных из PostgreSQL таблицы, созданной выше: Таблица в ClickHouse, получение данных из PostgreSQL таблицы, созданной выше:

View File

@ -25,7 +25,7 @@ SELECT bitmapBuild([1, 2, 3, 4, 5]) AS res, toTypeName(res);
``` text ``` text
┌─res─┬─toTypeName(bitmapBuild([1, 2, 3, 4, 5]))─────┐ ┌─res─┬─toTypeName(bitmapBuild([1, 2, 3, 4, 5]))─────┐
 │ AggregateFunction(groupBitmap, UInt8) │ │ │ AggregateFunction(groupBitmap, UInt8)
└─────┴──────────────────────────────────────────────┘ └─────┴──────────────────────────────────────────────┘
``` ```

View File

@ -430,7 +430,7 @@ murmurHash3_128( expr )
**Аргументы** **Аргументы**
- `expr` — [выражение](../syntax.md#syntax-expressions), возвращающее значение типа[String](../../sql-reference/functions/hash-functions.md). - `expr` — [выражение](../syntax.md#syntax-expressions), возвращающее значение типа [String](../../sql-reference/functions/hash-functions.md).
**Возвращаемое значение** **Возвращаемое значение**
@ -439,13 +439,13 @@ murmurHash3_128( expr )
**Пример** **Пример**
``` sql ``` sql
SELECT murmurHash3_128('example_string') AS MurmurHash3, toTypeName(MurmurHash3) AS type; SELECT hex(murmurHash3_128('example_string')) AS MurmurHash3, toTypeName(MurmurHash3) AS type;
``` ```
``` text ``` text
┌─MurmurHash3──────┬─type────────────┐ ┌─MurmurHash3──────────────────────┬─type───┐
6<EFBFBD>1<1C>4"S5KT<4B>~~q │ FixedString(16) 368A1A311CB7342253354B548E7E7E71 │ String
└──────────────────┴─────────────────┘ └──────────────────────────────────┴────────┘
``` ```
## xxHash32, xxHash64 {#hash-functions-xxhash32-xxhash64} ## xxHash32, xxHash64 {#hash-functions-xxhash32-xxhash64}

View File

@ -65,10 +65,10 @@ postgres=# INSERT INTO test (int_id, str, "float") VALUES (1,'test',2);
INSERT 0 1 INSERT 0 1
postgresql> SELECT * FROM test; postgresql> SELECT * FROM test;
int_id | int_nullable | float | str | float_nullable int_id | int_nullable | float | str | float_nullable
--------+--------------+-------+------+---------------- --------+--------------+-------+------+----------------
1 | | 2 | test | 1 | | 2 | test |
(1 row) (1 row)
``` ```
Получение данных в ClickHouse: Получение данных в ClickHouse:

View File

@ -109,7 +109,8 @@ def build_single_page_version(lang, args, nav, cfg):
extra['single_page'] = True extra['single_page'] = True
extra['is_amp'] = False extra['is_amp'] = False
with open(os.path.join(args.docs_dir, lang, 'single.md'), 'w') as single_md: single_md_path = os.path.join(args.docs_dir, lang, 'single.md')
with open(single_md_path, 'w') as single_md:
concatenate(lang, args.docs_dir, single_md, nav) concatenate(lang, args.docs_dir, single_md, nav)
with util.temp_dir() as site_temp: with util.temp_dir() as site_temp:
@ -221,3 +222,7 @@ def build_single_page_version(lang, args, nav, cfg):
subprocess.check_call(' '.join(create_pdf_command), shell=True) subprocess.check_call(' '.join(create_pdf_command), shell=True)
logging.info(f'Finished building single page version for {lang}') logging.info(f'Finished building single page version for {lang}')
if os.path.exists(single_md_path):
os.unlink(single_md_path)