ploomber.testing.sql.nulls_in_columns¶
- ploomber.testing.sql.nulls_in_columns(client, cols: str | List[str], product)¶
Check if any column has NULL values, returns bool
- Parameters:
client – Database client
cols – Column(s) to check
product – The relation to check
- Returns:
True if there is at least one NULL in any of the columns
- Return type:
bool