Skip to main content

dfq_column_not_nullable

Function dfq_column_not_nullable 

Source
pub fn dfq_column_not_nullable(
    column_name: impl AsRef<str>,
) -> Arc<ColumnNullableRule>
Expand description

Creates a rule that checks if a column is not nullable

ยงExamples

use datafusion_quality::rules::schema::dfq_column_not_nullable;
use datafusion_quality::RuleSet;

// Create a rule to check if the 'id' column is not nullable
let rule = dfq_column_not_nullable("id");
let mut ruleset = RuleSet::new();
ruleset.with_schema_rule(rule);