Skip to content

Commit da6a2a4

Browse files
authored
[docs] Update queries of "Column Pruning" section to align with DDL column definitions (#1190)
1 parent 1ef2011 commit da6a2a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

website/docs/table-design/table-types/log-table.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ CREATE TABLE log_table (
3434
order_id BIGINT,
3535
item_id BIGINT,
3636
amount INT,
37-
address STRING
37+
address STRING,
38+
dt DATE
3839
)
3940
WITH ('bucket.num' = '3');
4041
```
@@ -75,10 +76,10 @@ During query execution, query engines like Flink analyzes the query to identify
7576
For example the following streaming query:
7677

7778
```sql
78-
SELECT id, name FROM log_table WHERE timestamp > '2023-01-01';
79+
SELECT order_id, item_id FROM log_table WHERE dt > '2023-01-01';
7980
```
8081

81-
In this query, only the `id`, `name`, and `timestamp` columns are accessed. Other columns (e.g., `address`, `status`) are pruned and not read from storage.
82+
In this query, only the `order_id`, `item_id`, and `dt` columns are accessed. Other columns (e.g., `address`, `amount`) are pruned and not read from storage.
8283

8384

8485
## Log Compression

0 commit comments

Comments
 (0)