|
2 | 2 |
|
3 | 3 | ## Description |
4 | 4 |
|
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. |
6 | 20 |
|
7 | 21 | When an entity dataframe is supplied to `get_historical_features`, entity rows and |
8 | 22 | 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 |
41 | 55 | | `get_historical_features` (point-in-time correct join) | yes | |
42 | 56 | | `pull_latest_from_table_or_query` (retrieve latest feature values) | yes | |
43 | 57 | | `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) | |
45 | 59 | | `write_logged_features` (persist logged features to offline store) | yes | |
46 | 60 |
|
47 | 61 | Below is a matrix indicating which functionality is supported by `DaskRetrievalJob`. |
|
0 commit comments