IS NULL tests a column that the file declares NOT NULL, so the test is never true
What it finds
WHERE c IS NULL on a column the file creates as NOT NULL is never true, outside of outer joins: the test was meant for another column.
From the rule's source, null_test_on_not_null_column.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/sql:null-test-on-not-null-column" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:null-test-on-not-null-column shows the same in the terminal. Found a false positive? Report it.