wutiangan opened a new issue #3492:
URL: https://github.com/apache/incubator-doris/issues/3492


   - How to reproduce
   
   mysql> select * from t;
   +------+------+------+
   | i    | j    | k    |
   +------+------+------+
   |    1 |    1 |    1 |
   |    1 |    2 |    1 |
   |    2 |    1 |    1 |
   |    2 |    2 |    2 |
   +------+------+------+
   4 rows in set (0.00 sec)
   
   mysql> select count(distinct i), count(distinct j), count(distinct i,j) from 
t;
   +---------------------+---------------------+--------------------------+
   | count(DISTINCT `i`) | count(DISTINCT `j`) | count(DISTINCT `i`, `j`) |
   +---------------------+---------------------+--------------------------+
   |                   2 |                   2 |                        2 |
   +---------------------+---------------------+--------------------------+
   1 row in set (0.01 sec)
   
   **count(distinct i,j)  Should return 4 instead of 2**


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to