-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Redshift historical retrieval (#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>
- Loading branch information
Showing
15 changed files
with
949 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.