duckdb / duckdb-fuzzer

Repository that contains automatic reports of issues found through fuzzing DuckDB
0 stars 0 forks source link

ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c2" [5.5] (bindings: {#[3.0], #[3.1], #[3.2]}) #3210

Closed fuzzerofducks closed 3 months ago

fuzzerofducks commented 3 months ago

Issue found by SQLSmith on git commit hash 50bb6 using seed 175273785.

To Reproduce

create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types();
SELECT NULL FROM main.all_types AS ref_0 INNER JOIN (SELECT (SELECT NULL) AS c1 FROM main.all_types RIGHT JOIN main.all_types AS ref_2 INNER JOIN main.all_types AS ref_3 ON (EXISTS(SELECT ref_3.timestamp_tz AS c0, ref_3.date AS c1, ref_2.fixed_int_array AS c2 WHERE 0)) ON (NULL) WHERE ref_3."varchar") AS subq_0 ON (EXISTS(SELECT subq_0.c1 AS c4, ref_0.fixed_nested_int_array AS c5, ref_5.double_array AS c6 FROM main.all_types AS ref_5 WHERE (ref_0."varchar" ~~ ref_0."varchar"))) RIGHT JOIN main.all_types AS ref_6 ON ((ref_0.fixed_struct_array = ref_6.fixed_struct_array))

Error Message

ABORT THROWN BY INTERNAL EXCEPTION: Failed to bind column reference "c2" [5.5] (bindings: {#[3.0], #[3.1], #[3.2]})