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: select ... from stream with consume not work as expected in non auto commit mode #15581

Closed
dantengsky opened this issue May 20, 2024 · 0 comments · Fixed by #15582
Closed

Comments

@dantengsky
Copy link
Member

dantengsky commented May 20, 2024

Summary

select ... from stream with consume not work as expected in non auto commit mode

how to reproduce:

the following test case should return a non-empty result set at the end, but not.

create or replace database poc_databend;

use poc_databend;


create  or replace table t_1 (
  str varchar 
);


create or replace stream s_1 on table t_1 append_only = true;


insert into t_1 (str) values ('a'), ('b');


begin;

      select * from s_1 with consume;
      select 1/0;

commit;

select * from s_1; -- expects non-empty result set but NOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant