Commit bf557bc
Implement Redshift historical retrieval (feast-dev#1720)
* Implement Redshift historical retrieval
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Fix imports
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Fixed get_historical_features where entity_df is a SQL query
Fixed get_historical_features where entity_df is a SQL query, while keeping the utility functions common between Redshift and BigQuery. `infer_event_timestamp_from_entity_df` and `assert_expected_columns_in_entity_df` are now based on the entity schema rather than the dataframe.
I also completely removed the min/max timestamp inference, since those could not be merged (needed to query BigQuery and Redshift). Instead, I moved the logic inside the SQL templates, reducing the code complexity.
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Address most of the comments
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Update sdk/python/feast/infra/offline_stores/redshift.py
Co-authored-by: Willem Pienaar <6728866+woop@users.noreply.github.com>
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Merge common_utils and helpers into utils.py
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Add test_historical_retrieval test for Redshift, fix some bugs
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Use features instead of feature_refs
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
* Rename utils to offline_utils and add created_timestamp_column
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
Co-authored-by: Willem Pienaar <6728866+woop@users.noreply.github.com>1 parent 9c5a961 commit bf557bc
File tree
15 files changed
+949
-383
lines changed- sdk/python
- feast
- infra
- offline_stores
- utils
- tests/integration
- materialization
- offline_store
15 files changed
+949
-383
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments