Skip to content

Commit

Permalink
[BUG] Apply create_partitions to historical validate (#303)
Browse files Browse the repository at this point in the history
* Apply create_partitions to historical validate.

* Remove comments and adjusts.
  • Loading branch information
moromimay authored Mar 30, 2021
1 parent 3d93a09 commit 0d30932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions butterfree/load/writers/historical_feature_store_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ def validate(
Raises:
AssertionError: if count of written data doesn't match count in current
feature set dataframe.
"""
table_name = (
f"{feature_set.name}"
Expand All @@ -240,7 +239,9 @@ def validate(
written_count = (
spark_client.read(
self.db_config.format_,
path=self.db_config.get_path_with_partitions(table_name, dataframe),
path=self.db_config.get_path_with_partitions(
table_name, self._create_partitions(dataframe)
),
).count()
if self.interval_mode and not self.debug_mode
else spark_client.read_table(table_name).count()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages, setup

__package_name__ = "butterfree"
__version__ = "1.2.0.dev3"
__version__ = "1.2.0.dev4"
__repository_url__ = "https://github.com/quintoandar/butterfree"

with open("requirements.txt") as f:
Expand Down

0 comments on commit 0d30932

Please sign in to comment.