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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
