Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def execute(self, context: Context) -> dict[str, Any]:
gcp_conn_id=self.gcp_conn_id,
impersonation_chain=self.impersonation_chain,
)
self.log.info("Creating the Feature Online Store...")
self.log.info("Creating the Feature Online Store id: %s", self.feature_online_store_id)
result_operation = hook.create_feature_online_store(
project_id=self.project_id,
location=self.location,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
from __future__ import annotations

import os
import random
import string
from datetime import datetime, timedelta

from google.cloud.aiplatform_v1beta1 import FeatureOnlineStore, FeatureView, FeatureViewDataKey
Expand Down Expand Up @@ -64,10 +62,7 @@
BQ_VIEW_FQN = f"{PROJECT_ID}.{BQ_DATASET_ID}.{BQ_VIEW_ID}"

# Please take into consideration that max ID length is 60 symbols
PREFIX_FEATURE_ONLINE_STORE_ID = "".join(
random.choice(string.ascii_letters + string.digits) for _ in range(20)
)
FEATURE_ONLINE_STORE_ID = f"feature_online_store_{PREFIX_FEATURE_ONLINE_STORE_ID}".replace("-", "_")
FEATURE_ONLINE_STORE_ID = f"{ENV_ID}_fo_id".replace("-", "_")
FEATURE_VIEW_ID = "feature_view_product"
FEATURE_VIEW_DATA_KEY = {"key": "28098"}

Expand Down