Issue found by SQLSmith on git commit hash 50bb6 using seed 812335527.
To Reproduce
create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types();
SELECT NULL FROM (SELECT ref_3.timestamptz_array AS c0 FROM main.all_types RIGHT JOIN main.all_types AS ref_1 LEFT JOIN main.all_types AS ref_2 INNER JOIN main.all_types AS ref_3 ON (EXISTS(SELECT ref_2.fixed_nested_int_array AS c0, ref_3."float" AS c1 WHERE 0)) ON (0) ON (ref_3."varchar"))
Error Message
ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c0" [5.2] (bindings: {#[3.0], #[3.1], #[3.2]})
Issue found by SQLSmith on git commit hash 50bb6 using seed 812335527.
To Reproduce
Error Message