Skip to content

Commit 3e87429

Browse files
ZmmBigdatawuchong
authored andcommitted
[docs] Update queries of "Column Pruning" section to align with DDL column definitions (#1190)
1 parent d21dcf0 commit 3e87429

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
@@ -32,7 +32,8 @@ CREATE TABLE log_table (
3232
order_id BIGINT,
3333
item_id BIGINT,
3434
amount INT,
35-
address STRING
35+
address STRING,
36+
dt DATE
3637
)
3738
WITH ('bucket.num' = '3');
3839
```
@@ -73,10 +74,10 @@ During query execution, query engines like Flink analyzes the query to identify
7374
For example the following streaming query:
7475

7576
```sql
76-
SELECT id, name FROM log_table WHERE timestamp > '2023-01-01';
77+
SELECT order_id, item_id FROM log_table WHERE dt > '2023-01-01';
7778
```
7879

79-
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.
80+
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.
8081

8182

8283
## Log Compression

0 commit comments

Comments
 (0)