This function checks whether the uniqueness of columns in a new dataset matches the expected uniqueness defined in a metadata reference. It warns if any columns do not conform to the expected uniqueness.

assert_field_distinctness(new_data, metadata)

Arguments

new_data

A data frame. The dataset whose column uniqueness needs to be verified.

metadata

A data frame. Metadata containing a column named is_unique_column, indicating whether each field is expected to be unique.

Value

No return value. The function issues warnings if any columns deviate from their expected uniqueness.