From 303d27f82b74dd26402d57ce36d185580da590e8 Mon Sep 17 00:00:00 2001 From: annvsh Date: Mon, 7 Dec 2020 21:21:37 +0700 Subject: [PATCH] Fixed --- docs/en/interfaces/formats.md | 6 ++---- docs/ru/interfaces/formats.md | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/en/interfaces/formats.md b/docs/en/interfaces/formats.md index c72925811c0..4c5b586935c 100644 --- a/docs/en/interfaces/formats.md +++ b/docs/en/interfaces/formats.md @@ -1390,7 +1390,7 @@ The following is a comparison of the `RawBLOB` and [RowBinary](#rowbinary) forma - strings are represented as length in varint format (unsigned [LEB128] (https://en.wikipedia.org/wiki/LEB128)), followed by the bytes of the string. When an empty value is passed to the `RawBLOB` input, ClickHouse generates an exception: - + ``` text Code: 108. DB::Exception: No data to insert ``` @@ -1398,11 +1398,9 @@ Code: 108. DB::Exception: No data to insert **Example** ``` bash -$ clickhouse-client --query "DROP TABLE IF EXISTS {some_table};" -$ clickhouse-client --query "CREATE TABLE {some_table} (a String) ENGINE = Memory;" +$ clickhouse-client --query "CREATE TABLE {some_table} (a String) ENGINE = Memory;" $ cat {filename} | clickhouse-client --query="INSERT INTO {some_table} FORMAT RawBLOB" $ clickhouse-client --query "SELECT * FROM {some_table} FORMAT RawBLOB" | md5sum -$ clickhouse-client --query "DROP TABLE {some_table};" ``` Result: diff --git a/docs/ru/interfaces/formats.md b/docs/ru/interfaces/formats.md index 92e3be9588f..bd9ca6bb1ad 100644 --- a/docs/ru/interfaces/formats.md +++ b/docs/ru/interfaces/formats.md @@ -1277,7 +1277,7 @@ Code: 108. DB::Exception: No data to insert **Пример** ``` bash -$ clickhouse-client --query "CREATE TABLE {some_table} (a String) ENGINE = Memory;" +$ clickhouse-client --query "CREATE TABLE {some_table} (a String) ENGINE = Memory;" $ cat {filename} | clickhouse-client --query="INSERT INTO {some_table} FORMAT RawBLOB" $ clickhouse-client --query "SELECT * FROM {some_table} FORMAT RawBLOB" | md5sum ```