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: merge into filter panic #13567

Closed
2 tasks done
JackTan25 opened this issue Nov 3, 2023 · 0 comments · Fixed by #13547
Closed
2 tasks done

bug: merge into filter panic #13567

JackTan25 opened this issue Nov 3, 2023 · 0 comments · Fixed by #13547
Assignees
Labels
C-bug Category: something isn't working

Comments

@JackTan25
Copy link
Contributor

JackTan25 commented Nov 3, 2023

Search before asking

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

Version

868388

What's Wrong?

panicked at 'index out of bounds: the len is 0 but the index is 0', src/query/service/src/interpreters/interpreter_merge_into.rs:646:26

How to Reproduce?

mysql> select count(*) from test_order;                                                                                                             
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.04 sec)
Read 1 rows, 1.00 B in 0.002 sec., 605.33 rows/sec., 605.33 B/sec.

mysql> select count(*) from random_source_store;                                                                                                    
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.05 sec)
Read 1 rows, 1.00 B in 0.002 sec., 504.64 rows/sec., 504.64 B/sec.

mysql> merge into test_order as t            using (             select * from random_source_store           ) as s            on t.id = s.id and t.insert_time = s.insert_time            when matched then update *           when not matched then insert *;
ERROR 1105 (HY000): TokioError. Code: 1068, Text = Cannot join handle from context's runtime, cause: task 394 panicked.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants