Issue found by SQLSmith on git commit hash 50bb6 using seed 481155597.
To Reproduce
create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types() limit 0;
SELECT NULL FROM (SELECT ref_1."float" AS c0, ref_1.time_tz AS c1, ref_1.fixed_varchar_array AS c6 FROM main.all_types AS ref_0 INNER JOIN main.all_types AS ref_1 ON (EXISTS(SELECT ref_1."smallint" AS c0, NULL, ref_0."interval" AS c2 WHERE (ref_1.dec_18_6 AND NULL))) WHERE ref_1."varchar")
Error Message
ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c2" [3.5] (bindings: {#[1.0], #[1.1], #[1.2], #[1.3], #[1.4], #[1.5]})
Issue found by SQLSmith on git commit hash 50bb6 using seed 481155597.
To Reproduce
Error Message