Closed
Description
Describe the bug
Given this slt
statement ok
CREATE TABLE unnest_table
AS VALUES
([1,2,3])
;
select unnest(column1), unnest(column1) + 1 from unnest_table;
Datafusion throws error
External error: query failed: DataFusion error: Error during planning: Projections require unique expression names but the expression "unnest_table.column1 AS unnest(unnest_table.column1)" at position 0 and "unnest_table.column1 AS unnest(unnest_table.column1)" at position 1 have the same name. Consider aliasing ("AS") one of them.
To Reproduce
No response
Expected behavior
unnest(expr) can be referenced multiple times within select statement
Additional context
No response