Skip to content

invalid_percent not working as expected with soda-core-spark-df = 3.5.1 #2331

@Jaisinghani

Description

@Jaisinghani

Observed that the rule seems to be not working with invalid_percent, the same works with invalid_count, below are the details
soda-core-spark-df = 3.5.1
Rule tested = NON_NEGATIVE
Check =
checks for DATASET_20250701':
invalid_percent(SCORE):
valid_min: 0
warn: when > 0
name: daily_score_check
Scan Summary =
daily_score_check [/workspace/checks.yml] [PASSED]
check_value: 0.0
row_count: 10
invalid_count: 2

However the same rule when configured with invalid_count seems to work as expected

Check =
checks for DATASET_20250701':
invalid_count(SCORE):
valid_min: 0
warn: when > 0
name: daily_score_check
Scan Summary =
daily_score_check [/workspace/checks.yml] [WARNED]
check_value: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions