Skip to content

Commit e38a08d

Browse files
authored
docs: add missing page to toc, and fix links (delta-io#4351)
1 parent 5f05093 commit e38a08d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/usage/working-with-partitions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ tmp/partitioned-table/
3838

3939
### Filtering by partition columns
4040

41-
Because partition columns are part of the storage path, queries that filter on those columns can skip reading unneeded partitions. You can specify partition filters when reading data with [DeltaTable.to_pandas()](../../delta_table/#deltalake.DeltaTable.to_pandas).
41+
Because partition columns are part of the storage path, queries that filter on those columns can skip reading unneeded partitions. You can specify partition filters when reading data with [DeltaTable.to_pandas()](../api/delta_table/index.md#deltalake.DeltaTable.to_pandas).
4242

4343
In this example we restrict our query to the `country="US"` partition.
4444

@@ -209,15 +209,15 @@ This command logically deletes the data by creating a new transaction.
209209

210210
### Optimize & Vacuum
211211

212-
Partitioned tables can accumulate many small files if a partition is frequently appended to. You can compact these into larger files on a specific partition with [`optimize.compact`](../../delta_table/#deltalake.DeltaTable.optimize).
212+
Partitioned tables can accumulate many small files if a partition is frequently appended to. You can compact these into larger files on a specific partition with [`optimize.compact`](../api/delta_table/index.md#deltalake.DeltaTable.optimize).
213213

214214
If we want to target compaction at specific partitions we can include partition filters.
215215

216216
```python
217217
dt.optimize.compact(partition_filters=[("country", "=", "CA")])
218218
```
219219

220-
Then optionally [`vacuum`](../../delta_table/#deltalake.DeltaTable.vacuum) the table to remove older, unreferenced files.
220+
Then optionally [`vacuum`](../api/delta_table/index.md#deltalake.DeltaTable.vacuum) the table to remove older, unreferenced files.
221221

222222
### Handling High-Cardinality Columns
223223

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ nav:
6161
- Querying a table: usage/querying-delta-tables.md
6262
- Merging a table: usage/merging-tables.md
6363
- Managing a table: usage/managing-tables.md
64+
- Working with partitions: usage/working-with-partitions.md
6465
- Writing a table:
6566
- usage/writing/index.md
6667
- usage/writing/writing-to-s3-with-locking-provider.md

0 commit comments

Comments
 (0)