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: streaming table function result missing if other input rows lead to error #19352

Closed
BugenZhao opened this issue Nov 12, 2024 · 0 comments · Fixed by #19353
Closed

bug: streaming table function result missing if other input rows lead to error #19352

BugenZhao opened this issue Nov 12, 2024 · 0 comments · Fixed by #19353
Labels
component/streaming Stream processing related issue. type/bug Something isn't working
Milestone

Comments

@BugenZhao
Copy link
Member

BugenZhao commented Nov 12, 2024

Since #17156, we should be able to tolerate table function error in streaming mode. However, the implementation seems incorrect: a problematic input can cause the results of other input rows to be missing, if they are in the same chunk.

To reproduce:

-- ensure the same chunk
set streaming_parallelism to 1;

create table t (x int);
create materialized view mv as select x, generate_series(1, 2, x) from t;

insert into t values (0), (1);
flush;

select * from mv;
-- got empty result, expected (x = 1) to be successfully executed

Revealed by #19250

@BugenZhao BugenZhao added type/bug Something isn't working component/streaming Stream processing related issue. labels Nov 12, 2024
@github-actions github-actions bot added this to the release-2.2 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/streaming Stream processing related issue. type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant