Skip to content

Commit 93751f3

Browse files
committed
nit
1 parent 62f685e commit 93751f3

File tree

1 file changed

+12
-19
lines changed
  • website/docs/streaming-lakehouse/integrate-data-lakes

1 file changed

+12
-19
lines changed

website/docs/streaming-lakehouse/integrate-data-lakes/lance.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,18 @@ To integrate Fluss with Lance, you must enable lakehouse storage and configure L
1010

1111
## Introduction
1212

13-
When a table is created or altered with the option `'table.datalake.enabled' = 'true'`, Fluss will automatically create a corresponding Lance table with table path `<warehouse_path>/<database_name>/<table_name>.lance`.
13+
When a table is created or altered with the option `'table.datalake.enabled' = 'true'`, Fluss will automatically create a corresponding Lance table with path `<warehouse_path>/<database_name>/<table_name>.lance`.
1414
The schema of the Lance table matches that of the Fluss table.
1515

1616
```sql title="Flink SQL"
1717
USE CATALOG fluss_catalog;
1818

1919
CREATE TABLE fluss_order_with_lake (
20-
`order_key` BIGINT,
21-
`cust_key` INT NOT NULL,
22-
`total_price` DECIMAL(15, 2),
23-
`order_date` DATE,
24-
`order_priority` STRING,
25-
`clerk` STRING,
26-
`ptime` AS PROCTIME(),
27-
PRIMARY KEY (`order_key`) NOT ENFORCED
28-
) WITH (
20+
`order_id` BIGINT,
21+
`item_id` BIGINT,
22+
`amount` INT,
23+
`address` STRING
24+
) WITH (
2925
'table.datalake.enabled' = 'true',
3026
'table.datalake.freshness' = '30s'
3127
);
@@ -39,21 +35,18 @@ Since Fluss version 0.7, you can also specify Lance table properties when creati
3935

4036
```sql title="Flink SQL"
4137
CREATE TABLE fluss_order_with_lake (
42-
`order_key` BIGINT,
43-
`cust_key` INT NOT NULL,
44-
`total_price` DECIMAL(15, 2),
45-
`order_date` DATE,
46-
`order_priority` STRING,
47-
`clerk` STRING,
48-
`ptime` AS PROCTIME()
38+
`order_id` BIGINT,
39+
`item_id` BIGINT,
40+
`amount` INT,
41+
`address` STRING
4942
) WITH (
5043
'table.datalake.enabled' = 'true',
5144
'table.datalake.freshness' = '30s',
52-
'lance.' = 'orc'
45+
'lance.max_row_per_file' = '512'
5346
);
5447
```
5548

56-
For example, you can specify the Lance property `file.format` to change the file format of the Paimon table, or set `deletion-vectors.enabled` to enable or disable deletion vectors for the Paimon table.
49+
For example, you can specify the property `max_row_per_file` to control the writing behavior when Fluss tiers data to Lance.
5750

5851
### Reading with Lance ecosystem tools
5952

0 commit comments

Comments
 (0)