LW047 Set-operation branches out of order

Severity: WarningFree

A UNION, INTERSECT or MINUS branch whose columns trade places with the first branch’s — Snowflake matches them by position, so values land in the wrong columns without an error.

How it scores

Debugging time saved
Impact
Time to detection
Complexity

Our estimates, from 1 to 5, not measurements. Compare it with the other 53 codes →

Part of

Also in “SQL errors before dbt™ run”

Install free →All 54 diagnostic codes