Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and asantoz committed Oct 14, 2024
1 parent 609949d commit 425ee8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions soda/core/soda/execution/check/row_count_comparison_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ def __init__(

# If the other partition is None, we ignore the partition_cfg setup
if row_count_comparison_check_cfg.other_partition_name:
other_table_cfg = data_source_scan_cfg.get_or_create_table_cfg(row_count_comparison_check_cfg.other_table_name)
other_partition_cfg = other_table_cfg.find_partition(row_count_comparison_check_cfg.location.file_path, row_count_comparison_check_cfg.other_partition_name)
other_table_cfg = data_source_scan_cfg.get_or_create_table_cfg(
row_count_comparison_check_cfg.other_table_name
)
other_partition_cfg = other_table_cfg.find_partition(
row_count_comparison_check_cfg.location.file_path, row_count_comparison_check_cfg.other_partition_name
)
self.other_partition.set_partition_cfg(other_partition_cfg)

self.metrics["row_count"] = self.data_source_scan.resolve_metric(
Expand Down
1 change: 1 addition & 0 deletions soda/core/tests/data_source/test_row_count_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def test_row_count_comparison_cross_data_source(data_source_fixture: DataSourceF

scan.assert_all_checks_pass()


def test_row_count_comparison_cross_data_source_with_filter(data_source_fixture: DataSourceFixture):
"""Does not really create two connections and test cross data sources with filtering, that is handled in integration tests.
Expand Down

0 comments on commit 425ee8d

Please sign in to comment.