Issue found by SQLSmith on git commit hash aef7b using seed 1012722480.
To Reproduce
create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types();
SELECT NULL FROM (SELECT NULL) , main.all_types AS ref_1 INNER JOIN main.all_types ON (NULL) LEFT JOIN main.all_types AS ref_3 INNER JOIN main.all_types AS ref_4 ON (ref_3."varchar") INNER JOIN main.all_types AS ref_5 ON (EXISTS(SELECT ref_4."timestamp" AS c1 WHERE (0 AND ref_3."varchar"))) ON (NULL)
Error Message
ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c1" [10.0] (bindings: {#[9.0]})
Issue found by SQLSmith on git commit hash aef7b using seed 1012722480.
To Reproduce
Error Message