You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "osipovartem (via GitHub)" <gi...@apache.org> on 2025/06/05 10:32:46 UTC
Re: [I] Support columns having the same alias [datafusion]
osipovartem commented on issue #6543:
URL: https://github.com/apache/datafusion/issues/6543#issuecomment-2943653445
Here is the same issue
```sql
CREATE TABLE test (col1 DATE, col2 DATE);
INSERT INTO test
SELECT TO_DATE('2013-05-08T23:39:20.123'), TO_DATE('2013-05-08T23:39:20.123')
```
```rust
Projections require unique expression names but the expression "to_date(Utf8("2013-05-08T23:39:20.123"))" at position 0 and "to_date(Utf8("2013-05-08T23:39:20.123"))" at position 1 have the same name. Consider aliasing ("AS") one of them.
```
would it be correct to use statement visitors here to add unique aliases?
--
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-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org