Skip to content

Commit 33a858f

Browse files
committed
_should_use_plan only returns true for local and sqlite
Only the SQLite local provider supports _plan and _apply_diffs. Updated the method to only return true for that setup so that other local providers don't need to implement these methods right now. Signed-off-by: Gunnar Sv Sigurbjörnsson <gunnar.sigurbjornsson@gmail.com>
1 parent 57d1343 commit 33a858f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sdk/python/feast/feature_store.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,10 @@ def _get_features(
392392

393393
def _should_use_plan(self):
394394
"""Returns True if _plan and _apply_diffs should be used, False otherwise."""
395-
# Currently only the local provider supports _plan and _apply_diffs.
396-
return self.config.provider == "local"
395+
# Currently only the local provider with sqlite online store supports _plan and _apply_diffs.
396+
return self.config.provider == "local" and (
397+
self.config.online_store and self.config.online_store.type == "sqlite"
398+
)
397399

398400
def _validate_all_feature_views(
399401
self,

0 commit comments

Comments
 (0)