ChPi opened a new issue, #11466:
URL: https://github.com/apache/doris/issues/11466

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   1.1.1
   
   ### What's Wrong?
   
   error
   ```
   select list expression not produced by aggregation output (missing from 
GROUP BY clause?): concat(`k1`, '1')
   ```
   
   ### What You Expected?
   
   success
   
   ### How to Reproduce?
   
   create table 
   ```
   CREATE TABLE `test1` (
     `k1` int(11) NOT NULL COMMENT "user id",
     `k2` int(11) NOT NULL COMMENT "data import time"
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   )
   ```
   query 
   ```
   select concat(k1,'1') as k,count(*) from test1 group by concat(k1,'1')
   ```
   success.
   but
   ```
   select concat(k1,'1') as k1,count(*) from test1 group by concat(k1,'1')
   ```
   fail.
   
   
   ### 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

Reply via email to