Skip to content
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

get wrong result with isnull #55475

Closed
hawkingrei opened this issue Aug 16, 2024 · 0 comments · Fixed by #55476
Closed

get wrong result with isnull #55475

hawkingrei opened this issue Aug 16, 2024 · 0 comments · Fixed by #55476
Labels

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `tl75eff7ba` (
  `col_1` tinyint(1) DEFAULT '0',
  KEY `idx_1` (`col_1`),
  UNIQUE KEY `idx_2` (`col_1`),
  UNIQUE KEY `idx_3` (`col_1`),
  KEY `idx_4` (`col_1`) /*!80000 INVISIBLE */,
  UNIQUE KEY `idx_5` (`col_1`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

INSERT INTO `tl75eff7ba` VALUES(1),(0);

SELECT `tl75eff7ba`.`col_1` AS `r0` FROM `tl75eff7ba` WHERE ISNULL(`tl75eff7ba`.`col_1`) OR `tl75eff7ba`.`col_1` IN (0,0,1,1) GROUP BY `tl75eff7ba`.`col_1` HAVING ISNULL(`tl75eff7ba`.`col_1`) OR `tl75eff7ba`.`col_1` IN (0,1,1,0) LIMIT 58651509

2. What did you expect to see? (Required)

get two result 0,1

3. What did you see instead (Required)

empty

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant