Skip to content

Commit 1f76d9d

Browse files
zinalblinkov
andauthored
Fixed the example of external data source creation for ClickHouse (#8989)
Co-authored-by: Ivan Blinkov <ivan@ydb.tech>
1 parent 058fb5d commit 1f76d9d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

ydb/docs/en/core/concepts/datamodel/external_data_source.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ CREATE EXTERNAL DATA SOURCE test_data_source WITH (
1818
AUTH_METHOD="BASIC",
1919
USE_TLS="TRUE",
2020
LOGIN="login",
21-
PASSWORD_SECRET_NAME="test_password_name"
22-
)
21+
PASSWORD_SECRET_NAME="test_password_name",
22+
PROTOCOL="NATIVE"
23+
);
2324
```
2425

2526
After creating an external data source, you can read data from the created `EXTERNAL DATA SOURCE` object. The example below illustrates reading data from the `test_table` table in the `default` database in the ClickHouse cluster:
2627

2728
```yql
28-
SELECT * FROM test_data_source.test_table
29+
SELECT * FROM test_data_source.test_table;
2930
```
3031

3132
External data sources allow execution of [federated queries](../federated_query/index.md) for cross-system data analytics tasks.

ydb/docs/ru/core/concepts/datamodel/external_data_source.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ CREATE EXTERNAL DATA SOURCE test_data_source WITH (
1919
AUTH_METHOD="BASIC",
2020
USE_TLS="TRUE",
2121
LOGIN="login",
22-
PASSWORD_SECRET_NAME="test_password_name"
23-
)
22+
PASSWORD_SECRET_NAME="test_password_name",
23+
PROTOCOL="NATIVE"
24+
);
2425
```
2526

2627
После создания внешнего источника данных можно выполнять чтение данных из созданного объекта `EXTERNAL DATA SOURCE`. Пример ниже иллюстрирует чтение данных из таблицы `test_table` из базы данных `default` в кластере ClickHouse:
2728

2829
```yql
29-
SELECT * FROM test_data_source.test_table
30+
SELECT * FROM test_data_source.test_table;
3031
```
3132

3233
С помощью внешних источников данных можно выполнять [федеративные запросы](../federated_query/index.md) для задач межсистемной аналитики данных.

0 commit comments

Comments
 (0)