duongcongtoai commented on code in PR #11577: URL: https://github.com/apache/datafusion/pull/11577#discussion_r1749176016
########## datafusion/sqllogictest/test_files/unnest.slt: ########## @@ -497,10 +523,45 @@ select unnest(column1) from (select * from (values([1,2,3]), ([4,5,6])) limit 1 6 ## FIXME: https://github.com/apache/datafusion/issues/11198 -query error DataFusion error: Error during planning: Projections require unique expression names but the expression "UNNEST\(Column\(Column \{ relation: Some\(Bare \{ table: "unnest_table" \}\), name: "column1" \}\)\)" at position 0 and "UNNEST\(Column\(Column \{ relation: Some\(Bare \{ table: "unnest_table" \}\), name: "column1" \}\)\)" at position 1 have the same name. Consider aliasing \("AS"\) one of them. +query error DataFusion error: Error during planning: Projections require unique expression names but the expression "UNNEST\(unnest_table.column1\)" at position 0 and "UNNEST\(unnest_table.column1\)" at position 1 have the same name. Consider aliasing \("AS"\) one of them. select unnest(column1), unnest(column1) from unnest_table; +## the same unnest expr is referened multiple times (unnest is the bottom-most expr) Review Comment: Fix: https://github.com/apache/datafusion/issues/11198 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org