Skip to content

Commit 33746b4

Browse files
authored
Merge branch 'main' into vldb_paper
2 parents a48e63a + 9f900cb commit 33746b4

File tree

835 files changed

+2042
-2302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

835 files changed

+2042
-2302
lines changed

docs/_snippets/_S3_authentication_and_bucket.md

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
import s3_1 from '@site/static/images/_snippets/s3/s3-1.png';
2+
import s3_2 from '@site/static/images/_snippets/s3/s3-2.png';
3+
import s3_3 from '@site/static/images/_snippets/s3/s3-3.png';
4+
import s3_4 from '@site/static/images/_snippets/s3/s3-4.png';
5+
import s3_5 from '@site/static/images/_snippets/s3/s3-5.png';
6+
import s3_6 from '@site/static/images/_snippets/s3/s3-6.png';
7+
import s3_7 from '@site/static/images/_snippets/s3/s3-7.png';
8+
import s3_8 from '@site/static/images/_snippets/s3/s3-8.png';
9+
import s3_9 from '@site/static/images/_snippets/s3/s3-9.png';
10+
import s3_a from '@site/static/images/_snippets/s3/s3-a.png';
11+
import s3_b from '@site/static/images/_snippets/s3/s3-b.png';
12+
import s3_c from '@site/static/images/_snippets/s3/s3-c.png';
13+
import s3_d from '@site/static/images/_snippets/s3/s3-d.png';
14+
import s3_e from '@site/static/images/_snippets/s3/s3-e.png';
15+
import s3_f from '@site/static/images/_snippets/s3/s3-f.png';
16+
import s3_g from '@site/static/images/_snippets/s3/s3-g.png';
17+
import s3_h from '@site/static/images/_snippets/s3/s3-h.png';
118

219
<details>
320
<summary>Create S3 buckets and an IAM user</summary>
@@ -10,85 +27,85 @@ In this procedure, we'll be creating a service account user, not a login user.
1027

1128
2. In "users", select **Add users**
1229

13-
![create_iam_user_0](@site/docs/_snippets/images/s3/s3-1.png)
30+
<img src={s3_1} alt="create_iam_user_0"/>
1431

1532
3. Enter the user name and set the credential type to **Access key - Programmatic access** and select **Next: Permissions**
1633

17-
![create_iam_user_1](@site/docs/_snippets/images/s3/s3-2.png)
34+
<img src={s3_2} alt="create_iam_user_1"/>
1835

1936
4. Do not add the user to any group; select **Next: Tags**
2037

21-
![create_iam_user_2](@site/docs/_snippets/images/s3/s3-3.png)
38+
<img src={s3_3} alt="create_iam_user_2"/>
2239

2340
5. Unless you need to add any tags, select **Next: Review**
2441

25-
![create_iam_user_3](@site/docs/_snippets/images/s3/s3-4.png)
42+
<img src={s3_4} alt="create_iam_user_3"/>
2643

2744
6. Select **Create User**
2845

2946
:::note
3047
The warning message stating that the user has no permissions can be ignored; permissions will be granted on the bucket for the user in the next section
3148
:::
3249

33-
![create_iam_user_4](@site/docs/_snippets/images/s3/s3-5.png)
50+
<img src={s3_5} alt="create_iam_user_4"/>
3451

3552
7. The user is now created; click on **show** and copy the access and secret keys.
3653
:::note
3754
Save the keys somewhere else; this is the only time that the secret access key will be available.
3855
:::
3956

40-
![create_iam_user_5](@site/docs/_snippets/images/s3/s3-6.png)
57+
<img src={s3_6} alt="create_iam_user_5"/>
4158

4259
8. Click close, then find the user in the users screen.
4360

44-
![create_iam_user_6](@site/docs/_snippets/images/s3/s3-7.png)
61+
<img src={s3_7} alt="create_iam_user_6"/>
4562

4663
9. Copy the ARN (Amazon Resource Name) and save it for use when configuring the access policy for the bucket.
4764

48-
![create_iam_user_7](@site/docs/_snippets/images/s3/s3-8.png)
65+
<img src={s3_8} alt="create_iam_user_7"/>
4966

5067
### Create an S3 bucket {#create-an-s3-bucket}
5168
1. In the S3 bucket section, select **Create bucket**
5269

53-
![create_s3_bucket_0](@site/docs/_snippets/images/s3/s3-9.png)
70+
<img src={s3_9} alt="create_s3_bucket_0"/>
5471

5572
2. Enter a bucket name, leave other options default
5673
:::note
5774
The bucket name must be unique across AWS, not just the organization, or it will emit an error.
5875
:::
5976
3. Leave `Block all Public Access` enabled; public access is not needed.
6077

61-
![create_s3_bucket_2](@site/docs/_snippets/images/s3/s3-a.png)
78+
<img src={s3_a} alt="create_s3_bucket_2"/>
6279

6380
4. Select **Create Bucket** at the bottom of the page
6481

65-
![create_s3_bucket_3](@site/docs/_snippets/images/s3/s3-b.png)
82+
<img src={s3_b} alt="create_s3_bucket_3"/>
6683

6784
5. Select the link, copy the ARN, and save it for use when configuring the access policy for the bucket.
6885

6986
6. Once the bucket has been created, find the new S3 bucket in the S3 buckets list and select the link
7087

71-
![create_s3_bucket_4](@site/docs/_snippets/images/s3/s3-c.png)
88+
<img src={s3_c} alt="create_s3_bucket_4"/>
7289

7390
7. Select **Create folder**
7491

75-
![create_s3_bucket_5](@site/docs/_snippets/images/s3/s3-d.png)
92+
<img src={s3_d} alt="create_s3_bucket_5"/>
7693

7794
8. Enter a folder name that will be the target for the ClickHouse S3 disk and select **Create folder**
7895

79-
![create_s3_bucket_6](@site/docs/_snippets/images/s3/s3-e.png)
96+
<img src={s3_e} alt="create_s3_bucket_6"/>
8097

8198
9. The folder should now be visible on the bucket list
8299

83-
![create_s3_bucket_7](@site/docs/_snippets/images/s3/s3-f.png)
100+
<img src={s3_f} alt="create_s3_bucket_7"/>
84101

85102
10. Select the checkbox for the new folder and click on **Copy URL** Save the URL copied to be used in the ClickHouse storage configuration in the next section.
86103

87-
![create_s3_bucket_8](@site/docs/_snippets/images/s3/s3-g.png)
104+
<img src={s3_g} alt="create_s3_bucket_8"/>
88105

89106
11. Select the **Permissions** tab and click on the **Edit** button in the **Bucket Policy** section
90107

91-
![create_s3_bucket_9](@site/docs/_snippets/images/s3/s3-h.png)
108+
<img src={s3_h} alt="create_s3_bucket_9"/>
92109

93110
12. Add a bucket policy, example below:
94111
```json

docs/chdb/guides/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ from YAML frontmatter fields title, slug, description. If you've found an error
1313
in the table of contents, please edit the frontmatter of the files directly.
1414
-->
1515

16+
| Page | Description |
17+
|-----|-----|
18+
| [How to query Parquet files](/docs/chdb/guides/querying-parquet) | Learn how to query Parquet files with chDB. |
19+
| [How to query data in an S3 bucket](/docs/chdb/guides/querying-s3) | Learn how to query data in an S3 bucket with chDB. |
20+
| [Using a clickhouse-local database](/docs/chdb/guides/clickhouse-local) | Learn how to use a clickhouse-local database with chDB |
21+
| [How to query Pandas DataFrames with chDB](/docs/chdb/guides/pandas) | Learn how to query Pandas DataFrames with chDB |
22+
| [JupySQL and chDB](/docs/chdb/guides/jupysql) | How to install chDB for Bun |
23+
| [How to query a remote ClickHouse server](/docs/chdb/guides/query-remote-clickhouse) | In this guide, we'll learn how to query a remote ClickHouse server from chDB. |
24+
| [How to query Apache Arrow with chDB](/docs/chdb/guides/apache-arrow) | In this guide, we'll learn how to query Apache Arrow tables with chDB |

docs/cloud/get-started/query-endpoints.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ description: Easily spin up REST API endpoints from your saved queries
55
keywords: [api, query api endpoints, query endpoints, query rest api]
66
---
77

8+
import endpoints_testquery from '@site/static/images/cloud/sqlconsole/endpoints-testquery.png';
9+
import endpoints_savequery from '@site/static/images/cloud/sqlconsole/endpoints-savequery.png';
10+
import endpoints_configure from '@site/static/images/cloud/sqlconsole/endpoints-configure.png';
11+
import endpoints_completed from '@site/static/images/cloud/sqlconsole/endpoints-completed.png';
12+
import endpoints_curltest from '@site/static/images/cloud/sqlconsole/endpoints-curltest.png';
13+
import endpoints_monitoring from '@site/static/images/cloud/sqlconsole/endpoints-monitoring.png';
14+
815
# Query API Endpoints
916

1017
The **Query API Endpoints** feature allows you to create an API endpoint directly from any saved SQL query in the ClickHouse Cloud console. You'll be able to access API endpoints via HTTP to execute your saved queries without needing to connect to your ClickHouse Cloud service via a native driver.
@@ -38,23 +45,23 @@ limit 10
3845

3946
Note that this query contains a parameter (`year`). The SQL console query editor automatically detects ClickHouse query parameter expressions and provides an input for each parameter. Let's quickly run this query to make sure that it works:
4047

41-
![Test the example query](@site/docs/cloud/images/sqlconsole/endpoints-testquery.png)
48+
<img src={endpoints_testquery} alt="Test the example query"/>
4249

4350
Next step, we'll go ahead and save the query:
4451

45-
![Save example query](@site/docs/cloud/images/sqlconsole/endpoints-savequery.png)
52+
<img src={endpoints_savequery} alt="Save example query"/>
4653

4754
More documentation around saved queries can be found [here](/cloud/get-started/sql-console#saving-a-query).
4855

4956
### Configuring the Query API Endpoint {#configuring-the-query-api-endpoint}
5057

5158
Query API endpoints can be configured directly from query view by clicking the **Share** button and selecting `API Endpoint`. You'll be prompted to specify which API key(s) should be able to access the endpoint:
5259

53-
![Configure query endpoint](@site/docs/cloud/images/sqlconsole/endpoints-configure.png)
60+
<img src={endpoints_configure} alt="Configure query endpoint"/>
5461

5562
After selecting an API key, the query API endpoint will automatically be provisioned. An example `curl` command will be displayed so you can send a test request:
5663

57-
![Endpoint curl command](@site/docs/cloud/images/sqlconsole/endpoints-completed.png)
64+
<img src={endpoints_completed} alt="Endpoint curl command"/>
5865

5966
### Query API parameters {#query-api-parameters}
6067

@@ -63,11 +70,14 @@ Query parameters in a query can be specified with the syntax `{parameter_name: t
6370
### Testing and monitoring {#testing-and-monitoring}
6471

6572
Once a Query API endpoint is created, you can test that it works by using `curl` or any other HTTP client:
66-
<img src={require('@site/docs/cloud/images/sqlconsole/endpoints-curltest.png').default} class="image" alt="endpoint curl test" style={{width: '80%', background:'none'}} />
73+
74+
75+
<img src={endpoints_curltest} class="image" alt="endpoint curl test" style={{width: '80%', background:'none'}} />
6776

6877
After you've sent your first request, a new button should appear immediately to the right of the **Share** button. Clicking it will open a flyout containing monitoring data about the query:
6978

70-
![Endpoint monitoring](@site/docs/cloud/images/sqlconsole/endpoints-monitoring.png)
79+
<img src={endpoints_monitoring} alt="Endpoint monitoring"/>
80+
7181

7282
## Implementation Details {#implementation-details}
7383

docs/cloud/get-started/query-insights.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ description: Visualize system.query_log data to simplify query debugging and per
55
keywords: [query insights, query log, query log ui, system.query_log insights]
66
---
77

8+
import insights_overview from '@site/static/images/cloud/sqlconsole/insights_overview.png';
9+
import insights_latency from '@site/static/images/cloud/sqlconsole/insights_latency.png';
10+
import insights_recent from '@site/static/images/cloud/sqlconsole/insights_recent.png';
11+
import insights_drilldown from '@site/static/images/cloud/sqlconsole/insights_drilldown.png';
12+
import insights_query_info from '@site/static/images/cloud/sqlconsole/insights_query_info.png';
13+
814
# Query Insights
915

1016
The **Query Insights** feature makes ClickHouse's built-in query log easier to use through various visualizations and tables. ClickHouse's `system.query_log` table is a key source of information for query optimization, debugging, and monitoring overall cluster health and performance.
@@ -13,31 +19,31 @@ The **Query Insights** feature makes ClickHouse's built-in query log easier to u
1319

1420
After selecting a service, the **Monitoring** navigation item in the left sidebar should expand to reveal a new **Query insights** sub-item. Clicking on this option opens the new Query insights page:
1521

16-
![Query Insights UI Overview](@site/docs/cloud/images/sqlconsole/insights_overview.png)
22+
<img src={insights_overview} alt="Query Insights UI Overview"/>
1723

1824
## Top-level metrics {#top-level-metrics}
1925

2026
The stat boxes at the top represent some basic top-level query metrics over the selected period of time. Beneath it, we’ve exposed three time-series charts representing query volume, latency, and error rate broken down by query kind (select, insert, other) over a selected time window. The latency chart can be further adjusted to display p50, p90, and p99 latencies:
2127

22-
![Query Insights UI Latency Chart](@site/docs/cloud/images/sqlconsole/insights_latency.png)
28+
<img src={insights_latency} alt="Query Insights UI Latency Chart"/>
2329

2430
## Recent queries {#recent-queries}
2531

2632
Beneath the top-level metrics, a table displays query log entries (grouped by normalized query hash and user) over the selected time window:
2733

28-
![Query Insights UI Recent Queries Table](@site/docs/cloud/images/sqlconsole/insights_recent.png)
34+
<img src={insights_recent} alt="Query Insights UI Recent Queries Table"/>
2935

3036
Recent queries can be filtered and sorted by any available field. The table can also be configured to display or hide additional fields such as tables, p90, and p99 latencies.
3137

3238
## Query drill-down {#query-drill-down}
3339

3440
Selecting a query from the recent queries table will open a flyout containing metrics and information specific to the selected query:
3541

36-
![Query Insights UI Query Drill down](@site/docs/cloud/images/sqlconsole/insights_drilldown.png)
42+
<img src={insights_drilldown} alt="Query Insights UI Query Drill down"/>
3743

3844
As we can see from the flyout, this particular query has been run more than 3000 times in the last 24 hours. All metrics in the **Query info** tab are aggregated metrics, but we can also view metrics from individual runs by selecting the **Query history** tab:
3945

40-
<img src={require('@site/docs/cloud/images/sqlconsole/insights_query_info.png').default}
46+
<img src={insights_query_info}
4147
class="image"
4248
alt="Query Insights UI Query Information"
4349
style={{width: '400px'}} />

0 commit comments

Comments
 (0)