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

   ### 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.2.4
   
   ### What's Wrong?
   
   ```
   mysql> select listed_board, count() from security_info group by listed_board 
order by listed_board;
   +--------------+---------+
   | listed_board | count() |
   +--------------+---------+
   | NULL         |  663612 |
   | 1            |    3975 |
   | 3            |    1973 |
   | 4            |     852 |
   | 5            |    2479 |
   | 6            |     369 |
   | 7            |       4 |
   | 8            |     482 |
   +--------------+---------+
   8 rows in set (0.04 sec)
   
   mysql> select count() from security_info where listed_board='1';
   +---------+
   | count() |
   +---------+
   |    3904 |
   +---------+
   1 row in set (0.03 sec)
   
   mysql> select count() from security_info where listed_board=1;
   +---------+
   | count() |
   +---------+
   |    3975 |
   +---------+
   1 row in set (0.03 sec)
   ```
   The data type of column `listed_board` is `varchar(6)`, not `int`. 
   The result of `listed_board='1'` is weird, on the contrary, `listed_board=1` 
is right.
   
   ### What You Expected?
   
   The result of `select count() from security_info where listed_board='1'` 
should be `3975`. Right data type, right result.
   
   ### 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