-
Notifications
You must be signed in to change notification settings - Fork 1k
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 <[email protected]> * Fix imports Signed-off-by: Tsotne Tabidze <[email protected]> * 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 <[email protected]> * Address most of the comments Signed-off-by: Tsotne Tabidze <[email protected]> * Update sdk/python/feast/infra/offline_stores/redshift.py Co-authored-by: Willem Pienaar <[email protected]> Signed-off-by: Tsotne Tabidze <[email protected]> * Merge common_utils and helpers into utils.py Signed-off-by: Tsotne Tabidze <[email protected]> * Add test_historical_retrieval test for Redshift, fix some bugs Signed-off-by: Tsotne Tabidze <[email protected]> * Use features instead of feature_refs Signed-off-by: Tsotne Tabidze <[email protected]> * Rename utils to offline_utils and add created_timestamp_column Signed-off-by: Tsotne Tabidze <[email protected]> Co-authored-by: Willem Pienaar <[email protected]>
- 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.