Skip to content

Commit 6a477be

Browse files
authored
test translate (#2197)
* fix: test translate * chore: test translate
1 parent adac86d commit 6a477be

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

docs/en/guides/51-access-data-lake/02-iceberg.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Apache Iceberg™
33
---
4+
45
import FunctionDescription from '@site/src/components/FunctionDescription';
56

67
<FunctionDescription description="Introduced or updated: v1.2.668"/>
@@ -137,9 +138,9 @@ Started web server at 127.0.0.1:8080
137138
```sql
138139
CREATE CATALOG iceberg TYPE = ICEBERG CONNECTION = (
139140
TYPE = 'rest'
140-
ADDRESS = 'http://host.docker.internal:8181'
141+
ADDRESS = 'http://host.docker.internal:8181'
141142
warehouse = 's3://warehouse/wh/'
142-
"s3.endpoint" = 'http://host.docker.internal:9000'
143+
"s3.endpoint" = 'http://host.docker.internal:9000'
143144
"s3.access-key-id" = 'admin'
144145
"s3.secret-access-key" = 'password'
145146
"s3.region" = 'us-east-1'
@@ -207,21 +208,21 @@ ORDER BY
207208

208209
This table maps data types between Apache Iceberg™ and Databend. Please note that Databend does not currently support Iceberg data types that are not listed in the table.
209210

210-
| Apache Iceberg™ | Databend |
211-
| ------------------------------- | ----------------------- |
212-
| BOOLEAN | [BOOLEAN](/sql/sql-reference/data-types/boolean) |
213-
| INT | [INT32](/sql/sql-reference/data-types/numeric#integer-data-types) |
214-
| LONG | [INT64](/sql/sql-reference/data-types/numeric#integer-data-types) |
215-
| DATE | [DATE](/sql/sql-reference/data-types/datetime) |
216-
| TIMESTAMP/TIMESTAMPZ | [TIMESTAMP](/sql/sql-reference/data-types/datetime) |
217-
| FLOAT | [FLOAT](/sql/sql-reference/data-types/numeric#floating-point-data-types) |
218-
| DOUBLE | [DOUBLE](/sql/sql-reference/data-types/numeric#floating-point-data-type) |
219-
| STRING/BINARY | [STRING](/sql/sql-reference/data-types/string) |
220-
| DECIMAL | [DECIMAL](/sql/sql-reference/data-types/decimal) |
221-
| ARRAY&lt;TYPE&gt; | [ARRAY](/sql/sql-reference/data-types/array), supports nesting |
222-
| MAP&lt;KEYTYPE, VALUETYPE&gt; | [MAP](/sql/sql-reference/data-types/map) |
223-
| STRUCT&lt;COL1: TYPE1, COL2: TYPE2, ...&gt; | [TUPLE](/sql/sql-reference/data-types/tuple) |
224-
| LIST | [ARRAY](/sql/sql-reference/data-types/array) |
211+
| Apache Iceberg™ | Databend |
212+
| ------------------------------------------- | ------------------------------------------------------------------------ |
213+
| BOOLEAN | [BOOLEAN](/sql/sql-reference/data-types/boolean) |
214+
| INT | [INT32](/sql/sql-reference/data-types/numeric#integer-data-types) |
215+
| LONG | [INT64](/sql/sql-reference/data-types/numeric#integer-data-types) |
216+
| DATE | [DATE](/sql/sql-reference/data-types/datetime) |
217+
| TIMESTAMP/TIMESTAMPZ | [TIMESTAMP](/sql/sql-reference/data-types/datetime) |
218+
| FLOAT | [FLOAT](/sql/sql-reference/data-types/numeric#floating-point-data-types) |
219+
| DOUBLE | [DOUBLE](/sql/sql-reference/data-types/numeric#floating-point-data-type) |
220+
| STRING/BINARY | [STRING](/sql/sql-reference/data-types/string) |
221+
| DECIMAL | [DECIMAL](/sql/sql-reference/data-types/decimal) |
222+
| ARRAY&lt;TYPE&gt; | [ARRAY](/sql/sql-reference/data-types/array), supports nesting |
223+
| MAP&lt;KEYTYPE, VALUETYPE&gt; | [MAP](/sql/sql-reference/data-types/map) |
224+
| STRUCT&lt;COL1: TYPE1, COL2: TYPE2, ...&gt; | [TUPLE](/sql/sql-reference/data-types/tuple) |
225+
| LIST | [ARRAY](/sql/sql-reference/data-types/array) |
225226

226227
## Managing Catalogs
227228

@@ -251,18 +252,18 @@ CONNECTION=(
251252
);
252253
```
253254

254-
| Parameter | Required? | Description |
255-
|------------------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
256-
| `<catalog_name>` | Yes | The name of the catalog you want to create. |
257-
| `TYPE` | Yes | Specifies the catalog type. For Apache Iceberg™, set to `ICEBERG`. |
258-
| `CONNECTION` | Yes | The connection parameters for the Iceberg catalog. |
259-
| `TYPE` (inside `CONNECTION`) | Yes | The connection type. For Iceberg, it is typically set to `rest` for REST-based connection. |
260-
| `ADDRESS` | Yes | The address or URL of the Iceberg service (e.g., `http://127.0.0.1:8181`). |
261-
| `WAREHOUSE` | Yes | The location of the Iceberg warehouse, usually an S3 bucket or compatible object storage system. |
255+
| Parameter | Required? | Description |
256+
| ---------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
257+
| `<catalog_name>` | Yes | The name of the catalog you want to create. |
258+
| `TYPE` | Yes | Specifies the catalog type. For Apache Iceberg™, set to `ICEBERG`. |
259+
| `CONNECTION` | Yes | The connection parameters for the Iceberg catalog. |
260+
| `TYPE` (inside `CONNECTION`) | Yes | The connection type. For Iceberg, it is typically set to `rest` for REST-based connection. |
261+
| `ADDRESS` | Yes | The address or URL of the Iceberg service (e.g., `http://127.0.0.1:8181`). |
262+
| `WAREHOUSE` | Yes | The location of the Iceberg warehouse, usually an S3 bucket or compatible object storage system. |
262263
| `<connection_parameter>` | Yes | Connection parameters to establish connections with external storage. The required parameters vary based on the specific storage service and authentication methods. See the table below for a full list of the available parameters. |
263264

264265
| Connection Parameter | Description |
265-
|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
266+
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
266267
| `s3.endpoint` | S3 endpoint. |
267268
| `s3.access-key-id` | S3 access key ID. |
268269
| `s3.secret-access-key` | S3 secret access key. |
@@ -280,7 +281,6 @@ CONNECTION=(
280281
| `s3.disable-ec2-metadata` | Option to disable loading credentials from EC2 metadata (typically used with `s3.allow-anonymous`). |
281282
| `s3.disable-config-load` | Option to disable loading configuration from config files and environment variables. |
282283

283-
284284
### SHOW CREATE CATALOG
285285

286286
Returns the detailed configuration of a specified catalog, including its type and storage parameters.
@@ -357,4 +357,4 @@ CONNECTION=(
357357
"s3.region"='us-east-1'
358358
"s3.endpoint"='http://127.0.0.1:9000'
359359
);
360-
```
360+
```

0 commit comments

Comments
 (0)