You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/25 02:17:00 UTC

[GitHub] [doris] shutao917 opened a new issue, #11159: [Bug] group by error

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

   ### 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.0
   
   ### What's Wrong?
   
   `SELECT
       servdate AS servdate,
       SUM(CASE WHEN servresult = 5 THEN 1 ELSE 0 END) AS farrow_num,
       SUM(CASE WHEN servresult = 1 THEN 1 ELSE 0 END) AS repeat_num,
       SUM(CASE WHEN servresult = 4 THEN 1 ELSE 0 END) AS abort_num,
       SUM(CASE WHEN servresult IN (2,3) THEN 1 ELSE 0 END) AS npd_num,
       SUM(CASE WHEN servresult = 6 THEN 1 ELSE 0 END) AS death_num,
       SUM(CASE WHEN servresult = 7 THEN 1 ELSE 0 END) AS remove_num
   FROM
      yz_datawarehouse_dws.x1
   GROUP BY
       servdate`
   
   get this error:
   errCode = 2, detailMessage = select list expression not produced by aggregation output (missing from GROUP BY clause?): sum(CASE WHEN `servresult` IN (2, 3) THEN 1 ELSE 0 END)
   
   
   table schema :
   `CREATE TABLE x1 (
     servdate DATE NULL COMMENT "配种日期",
     servresult INT NULL COMMENT "配种结果名称"
   ) ENGINE=OLAP
   DUPLICATE KEY(`servdate`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`servdate`) BUCKETS 16
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 3",
   "in_memory" = "false",
   "storage_format" = "V2"
   )`
   
   
   ### What You Expected?
   
   wrong
   
   ### 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-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] kpfly commented on issue #11159: [Bug] group by error

Posted by GitBox <gi...@apache.org>.
kpfly commented on issue #11159:
URL: https://github.com/apache/doris/issues/11159#issuecomment-1193505983

   It have been fixed  https://github.com/apache/doris/pull/11033 ,  The coming release version 1.1.1 will contains this fix.


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] dataalive closed issue #11159: [Bug] group by error

Posted by GitBox <gi...@apache.org>.
dataalive closed issue #11159: [Bug] group by error
URL: https://github.com/apache/doris/issues/11159


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org