-
Notifications
You must be signed in to change notification settings - Fork 590
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
fix: table with fs connector cannot work with rate limit #19338
Conversation
another question about the generated plan for table with connector
and I get the following 3 fragments
but for creating source + building mv on the source
I only have two fragments
is it expected that the 2nd approach have no fragment for |
That's expected. The first plan's fragments is for multiple data sources like sink into table and DML statments. |
found a new issue #19346 |
Co-authored-by: tabversion <[email protected]>
…9350) Co-authored-by: tabversion <[email protected]>
if is_fs_source && *fragment_type_mask == PbFragmentTypeFlag::FragmentUnspecified as i32 | ||
{ | ||
// when create table with fs connector, the fragment type is unspecified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems still incomplete to me: I guess MV on fs source still won't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works but it breaks in another way.
Test locally
dev=> CREATE source diamonds (
carat FLOAT,
cut TEXT,
color TEXT,
depth FLOAT,
) WITH (
connector = 'posix_fs',
match_pattern = 'data*.csv',
posix_fs.root = 'e2e_test/source_inline/fs/data',
source_rate_limit = 0
) FORMAT PLAIN ENCODE CSV ( without_header = 'false', delimiter = ',');
CREATE_SOURCE
dev=> create materialized view mv as select * from diamonds;
CREATE_MATERIALIZED_VIEW
dev=> select * from mv ;
carat | cut | color | depth
-------+-----+-------+-------
(0 rows)
dev=> ALTER source diamonds SET source_rate_limit TO DEFAULT;
ALTER_SOURCE
dev=>
dev=> flush;
FLUSH
dev=> select * from mv ; <- still not consuming
carat | cut | color | depth
-------+-----+-------+-------
(0 rows)
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
resolve #19296
The pr fix two places:
(src/frontend/src/optimizer/plan_node/stream_fs_fetch.rs)
(src/meta/src/stream/stream_graph/fragment.rs)
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.