Skip to content

Commit

Permalink
feature: Add Mariadb offline store
Browse files Browse the repository at this point in the history
Added MariaDB template

Signed-off-by: Theodor Mihalache <[email protected]>
  • Loading branch information
tmihalac committed May 3, 2024
1 parent 0c303ff commit 075b0d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def get_historical_features(
engine=engine,
config=config.offline_store,
full_feature_names=full_feature_names,
on_demand_feature_views=OnDemandFeatureView.get_requested_odfvs(feature_refs, project, registry),
on_demand_feature_views=OnDemandFeatureView.get_requested_odfvs(
feature_refs, project, registry
),
)
return job

Expand All @@ -234,10 +236,10 @@ def write_logged_features(
@staticmethod
@log_exceptions_and_usage(offline_store="mariadb")
def offline_write_batch(
config: RepoConfig,
feature_view: FeatureView,
table: pyarrow.Table,
progress: Optional[Callable[[int], Any]],
config: RepoConfig,
feature_view: FeatureView,
table: pyarrow.Table,
progress: Optional[Callable[[int], Any]],
):
assert isinstance(config.offline_store, MariaDBOfflineStoreConfig)
assert type(feature_view.batch_source).__name__ == "MariaDBSource"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def get_historical_features(
engine=engine,
config=config.offline_store,
full_feature_names=full_feature_names,
on_demand_feature_views=OnDemandFeatureView.get_requested_odfvs(feature_refs, project, registry),
on_demand_feature_views=OnDemandFeatureView.get_requested_odfvs(
feature_refs, project, registry
),
)
return job

Expand Down

0 comments on commit 075b0d7

Please sign in to comment.