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

UNION ALL might return error when the first child is table dual #48755

Closed
winoros opened this issue Nov 21, 2023 · 2 comments · Fixed by #48775
Closed

UNION ALL might return error when the first child is table dual #48755

winoros opened this issue Nov 21, 2023 · 2 comments · Fixed by #48775

Comments

@winoros
Copy link
Member

winoros commented Nov 21, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int, b int);
set @@tidb_max_chunk_size=32;
select a from (select 100 as a, 100 as b union all select * from t) t where b != 0;

make sure that the number of satisfied rows from t is more than 32.

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

Return the correct result.

3. What did you see instead (Required)

Error thrown Internal error: UnionExec chunk column count mismatch, req: 2, result: 1

4. What is your TiDB version? (Required)

@kennedy8312
Copy link

/type regression

@kennedy8312
Copy link

Regression Analysis
PR caused this regression: 35669

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

Successfully merging a pull request may close this issue.

2 participants