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 2019/10/15 11:47:09 UTC

[GitHub] [incubator-doris] kangpinghuang opened a new issue #1986: group by result is wrong for segment v2

kangpinghuang opened a new issue #1986: group by result is wrong for segment v2
URL: https://github.com/apache/incubator-doris/issues/1986
 
 
   for table:
   CREATE TABLE table_1
   (
       siteid INT DEFAULT '10',
       citycode SMALLINT,
       username VARCHAR(32) DEFAULT '',
       pv BIGINT SUM DEFAULT '0'
   )
   AGGREGATE KEY(siteid, citycode, username)
   DISTRIBUTED BY HASH(siteid) BUCKETS 10
   PROPERTIES("replication_num" = "1");
   
   and data:
   +--------+----------+----------+------+
   | siteid | citycode | username | pv   |
   +--------+----------+----------+------+
   |      5 |        3 | helen    |    3 |
   |      4 |        3 | bush     |    3 |
   |      2 |        1 | grace    |    2 |
   |      1 |        1 | jim      |    2 |
   |      3 |        2 | tom      |    2 |
   +--------+----------+----------+------+
   
   the query :
   select citycode, sum(pv) from table_1 group by citycode;
   result is wrong:
   mysql> select citycode,sum(pv) from table_1 group by citycode;
   +----------+-----------+
   | citycode | sum(`pv`) |
   +----------+-----------+
   |        0 |         0 |
   +----------+-----------+
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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