Skip to content

Commit 71b21bd

Browse files
committed
Dynamic import for passthru
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent 8d030fd commit 71b21bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/python/feast/infra/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from feast.feature_table import FeatureTable
1414
from feast.feature_view import DUMMY_ENTITY_ID, FeatureView
1515
from feast.infra.offline_stores.offline_store import RetrievalJob
16-
from feast.infra.passthrough_provider import PassthroughProvider
1716
from feast.on_demand_feature_view import OnDemandFeatureView
1817
from feast.protos.feast.types.EntityKey_pb2 import EntityKey as EntityKeyProto
1918
from feast.protos.feast.types.Value_pb2 import Value as ValueProto
@@ -148,6 +147,7 @@ def online_read(
148147
def get_provider(config: RepoConfig, repo_path: Path) -> Provider:
149148
if "." not in config.provider:
150149
if config.provider in {"gcp", "aws", "local"}:
150+
from feast.infra.passthrough_provider import PassthroughProvider
151151
return PassthroughProvider(config)
152152
else:
153153
raise errors.FeastProviderNotImplementedError(config.provider)

0 commit comments

Comments
 (0)