-
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.
feat: Contrib azure provider with synapse/mssql offline store and Azu…
…re registry store (#3072) * Broken state Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * working state Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix the lint issues Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Semi working state Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fremove print Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Run build-sphinx Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Add tutorials Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix? Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Begin configuring tests Signed-off-by: Danny Chiao <danny@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Working version Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix azure Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint and address issues Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix integration tests Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint and address issues Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Revert Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix pyarrow Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix lint Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * add requirements files Signed-off-by: Danny Chiao <danny@tecton.ai> * fix name of docs Signed-off-by: Danny Chiao <danny@tecton.ai> * fix offline store readme Signed-off-by: Danny Chiao <danny@tecton.ai> * fix offline store readme Signed-off-by: Danny Chiao <danny@tecton.ai> * fix Signed-off-by: Danny Chiao <danny@tecton.ai> * fix Signed-off-by: Danny Chiao <danny@tecton.ai> Signed-off-by: Kevin Zhang <kzhang@tecton.ai> Signed-off-by: Danny Chiao <danny@tecton.ai> Co-authored-by: Danny Chiao <danny@tecton.ai>
- Loading branch information
Showing
65 changed files
with
3,806 additions
and
87 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# MsSQL source (contrib) | ||
|
||
## Description | ||
|
||
MsSQL data sources are Microsoft sql table sources. | ||
These can be specified either by a table reference or a SQL query. | ||
|
||
## Disclaimer | ||
|
||
The MsSQL data source does not achieve full test coverage. | ||
Please do not assume complete stability. | ||
|
||
## Examples | ||
|
||
Defining a MsSQL source: | ||
|
||
```python | ||
from feast.infra.offline_stores.contrib.mssql_offline_store.mssqlserver_source import ( | ||
MsSqlServerSource, | ||
) | ||
|
||
driver_hourly_table = "driver_hourly" | ||
|
||
driver_source = MsSqlServerSource( | ||
table_ref=driver_hourly_table, | ||
event_timestamp_column="datetime", | ||
created_timestamp_column="created", | ||
) | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# MsSQL/Synapse offline store (contrib) | ||
|
||
## Description | ||
|
||
The MsSQL offline store provides support for reading [MsSQL Sources](../data-sources/mssql.md). Specifically, it is developed to read from [Synapse SQL](https://docs.microsoft.com/en-us/azure/synapse-analytics/sql/overview-features) on Microsoft Azure | ||
|
||
* Entity dataframes can be provided as a SQL query or can be provided as a Pandas dataframe. | ||
|
||
## Disclaimer | ||
|
||
The MsSQL offline store does not achieve full test coverage. | ||
Please do not assume complete stability. | ||
|
||
## Example | ||
|
||
{% code title="feature_store.yaml" %} | ||
```yaml | ||
registry: | ||
registry_store_type: AzureRegistryStore | ||
path: ${REGISTRY_PATH} # Environment Variable | ||
project: production | ||
provider: azure | ||
online_store: | ||
type: redis | ||
connection_string: ${REDIS_CONN} # Environment Variable | ||
offline_store: | ||
type: mssql | ||
connection_string: ${SQL_CONN} # Environment Variable | ||
``` | ||
{% endcode %} | ||
## Functionality Matrix | ||
The set of functionality supported by offline stores is described in detail [here](overview.md#functionality). | ||
Below is a matrix indicating which functionality is supported by the Spark offline store. | ||
| | MsSql | | ||
| :-------------------------------- | :-- | | ||
| `get_historical_features` (point-in-time correct join) | yes | | ||
| `pull_latest_from_table_or_query` (retrieve latest feature values) | yes | | ||
| `pull_all_from_table_or_query` (retrieve a saved dataset) | yes | | ||
| `offline_write_batch` (persist dataframes to offline store) | no | | ||
| `write_logged_features` (persist logged features to offline store) | no | | ||
|
||
Below is a matrix indicating which functionality is supported by `MsSqlServerRetrievalJob`. | ||
|
||
| | MsSql | | ||
| --------------------------------- | --- | | ||
| export to dataframe | yes | | ||
| export to arrow table | yes | | ||
| export to arrow batches | no | | ||
| export to SQL | no | | ||
| export to data lake (S3, GCS, etc.) | no | | ||
| export to data warehouse | no | | ||
| local execution of Python-based on-demand transforms | no | | ||
| remote execution of Python-based on-demand transforms | no | | ||
| persist results in the offline store | yes | | ||
|
||
To compare this set of functionality against other offline stores, please see the full [functionality matrix](overview.md#functionality-matrix). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Cassandra / Astra DB online store | ||
# Cassandra + Astra DB online store (contrib) | ||
|
||
## Description | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Azure (contrib) | ||
|
||
## Description | ||
|
||
* Offline Store: Uses the **MsSql** offline store by default. Also supports File as the offline store. | ||
* Online Store: Uses the **Redis** online store by default. Also supports Sqlite as an online store. | ||
|
||
## Disclaimer | ||
|
||
The Azure provider does not achieve full test coverage. | ||
Please do not assume complete stability. | ||
|
||
## Example | ||
|
||
{% code title="feature_store.yaml" %} | ||
```yaml | ||
registry: | ||
registry_store_type: AzureRegistryStore | ||
path: ${REGISTRY_PATH} # Environment Variable | ||
project: production | ||
provider: azure | ||
online_store: | ||
type: redis | ||
connection_string: ${REDIS_CONN} # Environment Variable | ||
``` | ||
{% endcode %} |
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.