avamingli opened a new issue, #1405: URL: https://github.com/apache/cloudberry/issues/1405
### Apache Cloudberry version main ### What happened Create AS got :ERROR: duplicate DISTRIBUTED BY column ### What you think should happen instead _No response_ ### How to reproduce ```sql create table dup_key_t(a int, b int, c int) distributed randomly; create temp table temp_2 as select rn, a, b from (select a, b, row_number() over (partition by a, b order by c) rn from dup_key_t where dup_key_t.a = dup_key_t.b) x; ERROR: duplicate DISTRIBUTED BY column 'a' ``` ### Operating System all ### Anything else _No response_ ### Are you willing to submit PR? - [x] Yes, I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/cloudberry/blob/main/CODE_OF_CONDUCT.md). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
