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

bug: InSubquery returns error result #6628

Closed
1 of 2 tasks
fkuner opened this issue Jul 14, 2022 · 3 comments · Fixed by #6641
Closed
1 of 2 tasks

bug: InSubquery returns error result #6628

fkuner opened this issue Jul 14, 2022 · 3 comments · Fixed by #6641
Assignees
Labels
A-planner Area: planner/optimizer C-bug Category: something isn't working

Comments

@fkuner
Copy link
Contributor

fkuner commented Jul 14, 2022

Search before asking

  • I had searched in the issues and found no similar issues.

Version

c774f80

What's Wrong?

mysql> select * from numbers(10) where number in (select * from numbers(5)) order by number;
+--------+
| number |
+--------+
|      0 |
|      1 |
|      4 |
|      5 |
|      6 |
+--------+
5 rows in set (0.03 sec)
Read 15 rows, 120.00 B in 0.008 sec., 1.9 thousand rows/sec., 14.81 KiB/sec.

The result should be 0 1 2 3 4.

How to Reproduce?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@fkuner fkuner added the C-bug Category: something isn't working label Jul 14, 2022
@fkuner
Copy link
Contributor Author

fkuner commented Jul 14, 2022

cc @xudong963 @leiysky

@xudong963 xudong963 self-assigned this Jul 14, 2022
@xudong963 xudong963 changed the title bug: select subquery returns error result bug: InSubquery returns error result Jul 14, 2022
@xudong963 xudong963 added the A-planner Area: planner/optimizer label Jul 14, 2022
@sundy-li
Copy link
Member

related to method mark_join_blocks. I think it's incorrect to call build_indexes.extend_from_slice .

@xudong963
Copy link
Member

related to method mark_join_blocks. I think it's incorrect to call build_indexes.extend_from_slice .

I'll verify it and give a fix tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-planner Area: planner/optimizer C-bug Category: something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants