Skip to content

Commit

Permalink
Fix batch_size calculation in SparkMaterializationEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhargav Dodla committed Mar 19, 2024
1 parent c374347 commit a9ede49
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ def _materialize_one(
# Calculate batch_size per feature_view
feature_view_batch_size = (
self.repo_config.batch_engine.batch_size
if feature_view.tags["batch_size"] is None
if "batch_size" not in feature_view.tags
or feature_view.tags["batch_size"] is None
else int(feature_view.tags["batch_size"])
)

Expand Down

0 comments on commit a9ede49

Please sign in to comment.