richtia opened a new issue, #10815: URL: https://github.com/apache/datafusion/issues/10815
### Describe the bug Datafusion substrait consumer is unable to produce/consumer a substrait plan that uses the same column names with different aliases ### To Reproduce ``` import substrait.gen.proto.plan_pb2 as plan_pb2 from datafusion import SessionContext from datafusion import substrait as ss ctx = SessionContext() sql_query = "SELECT PS_PARTKEY K1, PS_SUPPKEY AS K1 FROM 'partsupp'" substrait_proto = plan_pb2.Plan() substrait_plan = ss.substrait.serde.serialize_to_plan(sql_query, ctx) ``` Error: ``` DataFusion error: Plan("Projections require unique expression names but the expression \\"partsupp.ps_partkey AS k1\\" at position 0 and \\"partsupp.ps_suppkey AS k1\\" at position 1 have the same name. Consider aliasing (\\"AS\\") one of them.")') ``` ### Expected behavior _No response_ ### Additional context _No response_ -- 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.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