Issue found by SQLSmith on git commit hash dd9e6 using seed 965982941.
To Reproduce
create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types();
SELECT NULL FROM (SELECT NULL FROM main.all_types AS ref_0 INNER JOIN main.all_types AS ref_1 ON (EXISTS(SELECT ref_1.bool AS c0, ref_0."bigint" AS c4, ref_0.bool AS c6 WHERE 0)) INNER JOIN main.all_types AS ref_5 ON (ref_5."varchar") WHERE ref_0."bit")
Error Message
ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c0" [1.0] (bindings: {#[0.0], #[0.1], #[0.2]})
Issue found by SQLSmith on git commit hash dd9e6 using seed 965982941.
To Reproduce
Error Message