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

   ### 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
   
   1.1.3 and 2.1
   
   ### What's Wrong?
   
   when  i wrapper  "count" sql on an normal  select sql ,the "count" number is 
not correct. the repeatable operation sql is below
   
   create database tt;
   CREATE TABLE tt.test1
   (
       enum_type           varchar(256) comment 'rr',
       enum_key           varchar(256) comment 'rr',
       enum_value          STRING comment 'rr',
       enum_status          STRING comment 'rr'
   )UNIQUE KEY(enum_type,enum_key) comment 'test' DISTRIBUTED BY 
HASH(enum_type) BUCKETS 10
   PROPERTIES("replication_num" = "1");
   
   
   select count(1) from(
   
   select 'sada' ,count(1) FROM tt.test1
   
   )t
   
   ### What You Expected?
   
   the correct result is 1  and the real result is 0
   
   ### How to Reproduce?
   
   _No response_
   
   ### 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