Issue found by SQLSmith on git commit hash dd9e6 using seed 171762605.
To Reproduce
create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types() limit 0;
SELECT (SELECT NULL) FROM main.all_types AS ref_0 INNER JOIN (SELECT NULL, NULL, NULL, (SELECT NULL) AS c3, NULL, NULL, NULL, (SELECT NULL) AS c7, NULL, ref_1.list_of_fixed_int_array AS c9, ref_1."time" AS c10, ref_1.struct_of_fixed_array AS c11, ref_1."float" AS c12, ref_1."varchar" AS c13, ref_1.date_array AS c14, argmax(CAST(ref_1.blob AS BLOB), CAST(ref_1.blob AS BLOB)) OVER (PARTITION BY ref_1.timestamp_array ORDER BY ref_1.timestamp_s) AS c15, ref_1."float" AS c16, ref_1.timestamp_ms AS c17 FROM main.all_types AS ref_1 WHERE 0 LIMIT 154) AS subq_0 ON (EXISTS(SELECT subq_0.c10 AS c0, subq_0.c17 AS c1, ref_0."smallint" AS c2, ref_2."smallint" AS c3 FROM main.all_types AS ref_2 WHERE 0))
Issue found by SQLSmith on git commit hash dd9e6 using seed 171762605.
To Reproduce
Error Message