example marked with ``bash not ``text

This commit is contained in:
Alexey 2021-12-06 04:28:40 +00:00
parent 5b8f63a6f3
commit 85169c03ba
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ In a batch mode query data can be passed via `stdin`.
In the following example a table is created and loaded with data from a CSV file. Then the content of the table is queried. In the following example a table is created and loaded with data from a CSV file. Then the content of the table is queried.
``` text ``` bash
./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;" ./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;"
echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt
cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV" cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV"

View File

@ -81,7 +81,7 @@ ClickHouse поддерживает интерфейс [gRPC](https://grpc.io/).
В примере создается таблица, и в нее загружаются данные из CSV файла. Затем выводится содержимое таблицы. В примере создается таблица, и в нее загружаются данные из CSV файла. Затем выводится содержимое таблицы.
``` text ``` bash
./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;" ./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;"
echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt
cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV" cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV"