Issue found by SQLSmith on git commit hash 50bb6 using seed 26106225.
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_3.list_of_fixed_int_array AS c1 FROM main.all_types INNER JOIN main.all_types AS ref_1 INNER JOIN main.all_types AS ref_2 ON (1) ON (NULL) INNER JOIN main.all_types AS ref_3 ON (EXISTS(SELECT ref_3.usmallint AS c0, ref_2."smallint" AS c1, NULL, ref_3.hugeint AS c3, NULL WHERE 0)) RIGHT JOIN main.all_types AS ref_6 ON (ref_3."varchar"))
Error Message
ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c1" [5.6] (bindings: {#[3.0], #[3.1], #[3.2], #[3.3]})
Issue found by SQLSmith on git commit hash 50bb6 using seed 26106225.
To Reproduce
Error Message