Skip to content

Commit 4d7db47

Browse files
committed
feat(dwh): update
1 parent a96e339 commit 4d7db47

File tree

2 files changed

+72
-7
lines changed

2 files changed

+72
-7
lines changed

pages/data-warehouse/how-to/connect-applications.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
meta:
3-
title: How to connect applications to your deployment
4-
description: Learn how to connect your applications to your Scaleway Data Warehouse for ClickHouse® deployment.
3+
title: How to connect to your deployment
4+
description: Learn how to connect yourself or your applications to your Scaleway Data Warehouse for ClickHouse® deployment.
55
content:
66
h1: How to Connect Applications to Your Deployment
7-
paragraph: Learn how to connect your applications to your Scaleway Data Warehouse for ClickHouse® deployment.
7+
paragraph: Learn how to connect yourself or your applications to your Scaleway Data Warehouse for ClickHouse® deployment.
88
tags: connect applications deployment data warehouse clickhouse
99
dates:
1010
validation: 2025-05-07
@@ -13,7 +13,9 @@ categories:
1313
- data-warehouse
1414
---
1515

16-
This page explains how to connect your applications to your Data Warehouse for ClickHouse® deployment using the [Scaleway console](https://console.scaleway.com).
16+
This page explains how to connect yourself or your applications to your Data Warehouse for ClickHouse® deployment using the [Scaleway console](https://console.scaleway.com).
17+
18+
To connect your deployment with BI tools, refer to the [dedicated documentation](/data-warehouse/how-to/connect-bi-tools/).
1719

1820
<Macro id="requirements" />
1921

@@ -24,7 +26,7 @@ This page explains how to connect your applications to your Data Warehouse for C
2426

2527
1. Click **Data Warehouse** under **Managed Services** on the side menu. The Data Warehouse deployment page displays.
2628

27-
2. Click the name of the Data Warehouse deployment you want to connect to an application. The overview tab of the deployment displays.
29+
2. Click the name of the Data Warehouse deployment you want to connect to. The overview tab of the deployment displays.
2830

2931
3. Click the **Actions** button in the top-right corner of the page. A drop-down menu displays.
3032

@@ -40,4 +42,4 @@ This page explains how to connect your applications to your Data Warehouse for C
4042
- Protocols: Select the appropriate protocol, then run the displayed command in a terminal. Remember to replace the placeholders with the appropriate values, and to specify the correct path to the certificate file.
4143
- Languages: Select the desired language, then add the code displayed to your application code. Remember to replace the placeholders with the appropriate values, and to specify the correct path to the certificate file.
4244

43-
Your application is now connected to your Data Warehouse for ClickHouse® deployment using the administrator account.
45+
You are now connected to your Data Warehouse for ClickHouse® deployment using the administrator account.

pages/data-warehouse/how-to/import-data.mdx

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,69 @@ categories:
1313
- data-warehouse
1414
---
1515

16-
Data federation allows you to query and combine data from multiple sources, enabling seamless analytics across different databases or storage systems without the need to move or duplicate data. With Data Warehouse for ClickHouse®'s [bottomless storage](/data-warehouse/concepts/#bottomless-storage) feature, you can decouple compute and storage, allowing your data to be stored cost-effectively in external object storage while maintaining high performance for queries.
16+
Data federation allows you to query and combine data from multiple sources, enabling seamless analytics across different databases or storage systems without the need to move or duplicate data.
1717

18+
Scaleway Data Warehouse for ClickHouse® allows you to quickly import any type of compatible data into a [bottomless storage](/data-warehouse/concepts/#bottomless-storage) with minimal configuration.
19+
20+
## How to import data using the CLickHouse® CLI
21+
22+
### Connecting to the CLickHouse® CLI
23+
24+
1. Click **Data Warehouse** under **Managed Services** on the side menu. The Data Warehouse deployment page displays.
25+
26+
2. Click the name of the Data Warehouse deployment you want to connect to. The overview tab of the deployment displays.
27+
28+
3. Click **Connect** next to **Frameworks** in the **Connect to your deployment** section. The connection wizard displays.
29+
30+
4. Select **Protocols**, then copy the command in the **ClickHouse® CLI** tab.
31+
32+
5. In a terminal, paste and execute the copied command to connect to your deployment. Make sure to replace the placeholders by the corresponding values.
33+
34+
```sh
35+
clickhouse client \
36+
--host <YOUR_DEPLOYMENT_URL> \
37+
--port 9440 \
38+
--secure \
39+
--user scwadmin \
40+
--password '<YOUR_DEPLOYMENT_PASSWORD>'
41+
```
42+
43+
7. You are now connected to your deployments using the ClickHouse® CLI, you can now import data.
44+
45+
<Message type="tip">
46+
You can connect to your deployment using the ClickHouse® HTTP console directly from the **Overview** tab.
47+
</Message>
48+
49+
### Importing data into your deployment
50+
51+
There are several ways to import data into your Data Warehouse for ClickHouse® deployment, depending on how your data is stored:
52+
53+
- Using the `s3` table function: directly read data from an Amazon S3 bucket by specifying the bucket URL, the file format, and data structure.
54+
55+
- Using the `s3` Storage Engine: create a table that points to your S3 data, then insert data from the S3 table into your target table.
56+
57+
- Using `clickhouse-client`: execute an INSERT query to populate a table by specifying the bucket URL and the file format.
58+
59+
<Tabs id="import-data-into-data-warehouse">
60+
<TabsTab label="s3 table function">
61+
```sql
62+
INSERT INTO your_table
63+
SELECT *
64+
FROM s3('https://my-bucket.s3.scaleway.com/data/my_data.csv', 'CSV', 'column1 String, column2 Int32')
65+
```
66+
</TabsTab>
67+
<TabsTab label="s3 storage engine">
68+
```sql
69+
CREATE TABLE your_table_s3
70+
ENGINE = S3('https://my-bucket.s3.amazonaws.com/data/my_data.csv', 'CSV', 'column1 String, column2 Int32')
71+
```
72+
</TabsTab>
73+
<TabsTab label="ClickHouse® Client">
74+
```sh
75+
clickhouse-client --query="INSERT INTO your_table FORMAT CSVWithNames" \
76+
--url "https://my-bucket.s3.scaleway.com/data/my_data.csv" \
77+
--input_format_with_names=1
78+
```
79+
</TabsTab>
80+
</Tabs>
1881

0 commit comments

Comments
 (0)