malwaregarry opened a new issue, #36072: URL: https://github.com/apache/doris/issues/36072
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 2.1.3 ### What's Wrong? Given a table with a column that is an aggregate key: `CREATE TABLE t1(c0 varchar(1) NOT NULL) AGGREGATE KEY(c0) DISTRIBUTED BY RANDOM PROPERTIES ("replication_num" = "1");` If we insert duplicate entries, and select distinct, we get duplicate rows ``` INSERT INTO t1 (c0) VALUES ('a'); INSERT INTO t1 (c0) VALUES ('a'); SELECT DISTINCT t1.c0 FROM t1; -- returns both rows ``` ### What You Expected? only distinct rows returned ### How to Reproduce? ``` DROP DATABASE IF EXISTS doris0; CREATE DATABASE doris0; USE doris0; CREATE TABLE t1(c0 varchar(1) NOT NULL) AGGREGATE KEY(c0) DISTRIBUTED BY RANDOM PROPERTIES ("replication_num" = "1"); INSERT INTO t1 (c0) VALUES ('a'); INSERT INTO t1 (c0) VALUES ('a'); SELECT DISTINCT t1.c0 FROM t1; ``` ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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: commits-unsubscr...@doris.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org