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: assertion failed: !column.is_empty(). when using CASE WHEN on empty DataBlock #6682

Closed
leiysky opened this issue Jul 19, 2022 · 2 comments · Fixed by #6685
Closed

Bug: assertion failed: !column.is_empty(). when using CASE WHEN on empty DataBlock #6682

leiysky opened this issue Jul 19, 2022 · 2 comments · Fixed by #6685
Assignees
Labels
A-query Area: databend query C-bug Category: something isn't working

Comments

@leiysky
Copy link
Contributor

leiysky commented Jul 19, 2022

Only can be reproduced in debug build:

select case when number > 1 then 1 when number < 1 then 2 else 1 end from numbers(2) where false;

Which is caused by the debug_assertion here

@leiysky leiysky added C-bug Category: something isn't working A-query Area: databend query labels Jul 19, 2022
@leiysky
Copy link
Contributor Author

leiysky commented Jul 19, 2022

cc @sundy-li

@leiysky leiysky changed the title Bug: assertion failed: !column.is_empty(). when using CASE WHEN on empty table Bug: assertion failed: !column.is_empty(). when using CASE WHEN on empty DataBlock Jul 19, 2022
@xudong963
Copy link
Member

xudong963 commented Jul 19, 2022

#6659 same reason. cc @sundy-li

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

Successfully merging a pull request may close this issue.

3 participants