Skip to content

bug: update from ConstantTableScan panic #17573

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

Closed
1 of 2 tasks
forsaken628 opened this issue Mar 7, 2025 · 0 comments · Fixed by #17874
Closed
1 of 2 tasks

bug: update from ConstantTableScan panic #17573

forsaken628 opened this issue Mar 7, 2025 · 0 comments · Fixed by #17874
Labels
C-bug Category: something isn't working nullable-bug

Comments

@forsaken628
Copy link
Collaborator

Search before asking

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

Version

b444c5b

What's Wrong?

databend_common_tracing::panic_hook: panic_hook.rs:56 panicked at src/query/expression/src/evaluator.rs:124:13:
assertion left == right failed: column data type mismatch at index: 1, expr: if(CAST(_predicate (#18446744073709551615) AS Boolean NULL), CAST(tbb.col1 (#8) AS String NULL), tba.col1 (#0))
left: Nullable(String)
right: String

How to Reproduce?

create or replace table test_merge(
col1 varchar,
col2 varchar,
col3 varchar
);
insert into test_merge values(2,'abc',2),(3,'abc',3),(4,'abc',4);

set error_on_nondeterministic_update = 0;

with tbb("col1", "col2", "col3") as (values ('1', 'add', '11'), ('4', 'add', '44'))
update test_merge tba set tba.col1 =tbb.col1, tba.col2 = 'update', tba.col3 = tbb.col3 from tbb where tba.col1 = tbb.col1;

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 nullable-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants