The condition of a join does not refer to the table being joined

tx0/sql:join-condition-one-sidedrecommendedwarningreliability/control-flowdepth fastbug

What it finds

a JOIN b ON a.x = c.y: the condition of a join does not mention the table it joins, so every row of b pairs with every matching row of the others, a cross join in disguise. Usually an alias was mistyped.

From the rule's source, join_condition_one_sided.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:

tx0.toml
[rules]
"tx0/sql:join-condition-one-sided" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:join-condition-one-sided shows the same in the terminal. Found a false positive? Report it.