-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select count(distinct col_bit(64)_undef_signed
, col_enum_undef_signed
) get wrong result
#17241
Comments
@ChenPeng2013 It looks like a bug of MySQL after some investigaion. If you swap the two field in the count distinct, the result on MySQL will match TiDB's.
Additionally, I used a simple python script to calculate the distinct value pairs and it is indeed 43860. the following file is obtained by extract rows from the database. and
|
This test case has been reported to MySQL, https://bugs.mysql.com/bug.php?id=100504 , and it has been verified by MySQL team, we might just close this issue, @ChenPeng2013 could you please verify this as well? @SunRunAway FYI. |
@ChenPeng2013 , @SunRunAway Shall we close this issue? |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
source multi_column.txt;
2. What did you expect to see? (Required)
in mysql 8.0.17
I'm not sure if it has the same reason as #17216
3. Affected version (Required)
4. Root Cause Analysis
The text was updated successfully, but these errors were encountered: