Skip to content

Commit 4196373

Browse files
Merge branch 'master' into fix/label-view-source-update
2 parents c02ae62 + f2abc7c commit 4196373

3 files changed

Lines changed: 1309 additions & 60 deletions

File tree

‎docs/reference/offline-stores/dask.md‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,21 @@
22

33
## Description
44

5-
The Dask offline store provides support for reading [FileSources](../data-sources/file.md).
5+
The Dask offline store reads Parquet and Delta [FileSources](../data-sources/file.md).
6+
Delta reads require the `feast[delta]` extra and a table protocol supported by its
7+
Delta Lake reader. Reads use the current snapshot in the transaction log, so
8+
data files removed by an overwrite or compaction are not included. Use an absolute
9+
local Delta path when Feast needs to infer the source schema, because `FileSource`
10+
schema discovery does not resolve that path relative to the repository.
11+
12+
Saved datasets are written as Parquet. `DaskRetrievalJob.persist` rejects
13+
`SavedDatasetFileStorage(file_format=DeltaFormat())` instead of writing Parquet
14+
files under a Delta declaration, because such a directory has no Delta transaction
15+
log and cannot be read back as a Delta table. Saved datasets that an earlier Feast
16+
version wrote as plain Parquet under a DeltaFormat declaration are also not valid
17+
Delta tables: re-create them with `ParquetFormat` storage, or register the
18+
directory as a ParquetFormat `FileSource` to keep reading the existing Parquet
19+
files.
620

721
When an entity dataframe is supplied to `get_historical_features`, entity rows and
822
their additional columns (such as training labels) are retained even if all matching
@@ -41,7 +55,7 @@ Below is a matrix indicating which functionality is supported by the dask offlin
4155
| `get_historical_features` (point-in-time correct join) | yes |
4256
| `pull_latest_from_table_or_query` (retrieve latest feature values) | yes |
4357
| `pull_all_from_table_or_query` (retrieve a saved dataset) | yes |
44-
| `offline_write_batch` (persist dataframes to offline store) | yes |
58+
| `offline_write_batch` (persist dataframes to offline store) | yes (Parquet only; Delta sources are rejected) |
4559
| `write_logged_features` (persist logged features to offline store) | yes |
4660

4761
Below is a matrix indicating which functionality is supported by `DaskRetrievalJob`.

0 commit comments

Comments
 (0)