You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/doc/14-sql-commands/00-ddl/40-stage/01-ddl-create-stage.md
+20-24Lines changed: 20 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: CREATE STAGE
3
3
---
4
4
5
-
Creates a stage.
5
+
Creates an internal or external stage.
6
6
7
7
## Syntax
8
8
@@ -21,16 +21,18 @@ CREATE STAGE [ IF NOT EXISTS ] <external_stage_name>
21
21
[ COMMENT ='<string_literal>' ]
22
22
```
23
23
24
-
Where:
25
-
26
24
### externalStageParams
27
25
26
+
:::note
27
+
If the `ENDPOINT_URL` parameter is not specified in the command, Databend will create the stage on Amazon S3 by default. Therefore, when you create an external stage on an S3-compatible object storage or other object storage solutions, be sure to include the `ENDPOINT_URL` parameter.
| URL | External files located at the AWS S3 compatible object storage. |**Required**|
51
+
| URL | External files located at the AWS S3 compatible object storage. | Required |
50
52
| ENDPOINT_URL | The bucket endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. | Optional |
51
53
| ACCESS_KEY_ID | Your access key ID for connecting the AWS S3 compatible object storage. If not provided, Databend will access the bucket anonymously. | Optional |
52
54
| SECRET_ACCESS_KEY | Your secret access key for connecting the AWS S3 compatible object storage. | Optional |
| URL | External files located at the Azure Blob storage. |**Required**|
73
-
| ENDPOINT_URL | The container endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. |Optional|
74
+
| URL | External files located at the Azure Blob storage. | Required |
75
+
| ENDPOINT_URL | The container endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. |Required|
74
76
| ACCOUNT_NAME | Your account name for connecting the Azure Blob storage. If not provided, Databend will access the container anonymously. | Optional |
75
77
| ACCOUNT_KEY | Your account key for connecting the Azure Blob storage. | Optional |
| URL | External files located at the Google Cloud Storage |**Required**|
93
-
| ENDPOINT_URL | The container endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. |Optional|
94
+
| URL | External files located at the Google Cloud Storage | Required |
95
+
| ENDPOINT_URL | The container endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. |Required|
94
96
| CREDENTIAL | Your credential for connecting the GCS. If not provided, Databend will access the container anonymously. | Optional |
| URL | External files located at the obs |**Required**|
113
-
| ENDPOINT_URL | The container endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. |**Required**|
114
+
| URL | External files located at the obs | Required |
115
+
| ENDPOINT_URL | The container endpoint URL starting with "https://". To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. | Required |
114
116
| ACCESS_KEY_ID | Your access key ID for connecting the OBS. If not provided, Databend will access the bucket anonymously. | Optional |
115
117
| SECRET_ACCESS_KEY | Your secret access key for connecting the OBS. | Optional |
| URL | External endpoint and location of files. |**Required**|
134
+
| URL | External endpoint and location of files. | Required |
133
135
| HTTPS | Connect to RESTful API with HTTP or HTTPS, set to `true` will use `HTTPS`, else `HTTP`. Use `HTTPS` by default. To use a URL starting with "http://", set `allow_insecure` to `true` in the [storage] block of the file `databend-query-node.toml`. | Optional |
134
136
| DELEGATION | Delegation token of WebHDFS for authentication. If not set, no tokens will be used in further operations. | Optional |
135
137
@@ -156,19 +158,13 @@ copyOptions ::=
156
158
157
159
## Examples
158
160
159
-
### Internal Stages
160
-
161
161
```sql
162
+
-- This example creates an internal stage.
162
163
CREATE STAGE my_internal_stage;
163
-
```
164
164
165
-
### External Stages
166
-
167
-
```sql
165
+
-- This example creates an external stage on Amazon S3.
0 commit comments