Skip to content

Completeness check fails on empty data #5

@cr-assafbendavid

Description

@cr-assafbendavid

When the exported data set is empty, the completeness check fails.

This happens because if the query results in an empty table, adding the make_col + statsby has no effect, resulting still in an empty table. Then, when the result is read (either using pd.read_csv or pd.read_json, the resulting DataFrame is empty.

This can be addressed easily when getting the expected_number_of_lines, by replacing the [0] with a .get(0, 0), i.e. interpreting an empty result as 0 expected lines.

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