-
Notifications
You must be signed in to change notification settings - Fork 587
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
feat(sink): support columns subset for cassandra and doris sink #16821
Conversation
fix fmt
@@ -143,6 +143,7 @@ impl HeaderBuilder { | |||
self | |||
} | |||
|
|||
/// Only use in Starrocks |
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.
How does user to enable partial_update on starrocks sink? I think they can reuse the same with options on user side, but just set different header for different implementations.
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.
like create sink with(partial_update = 'true');
src/connector/src/sink/doris.rs
Outdated
@@ -125,8 +127,11 @@ impl DorisSink { | |||
.collect(); | |||
|
|||
let rw_fields_name = self.schema.fields(); | |||
if rw_fields_name.len().ne(&doris_columns_desc.len()) { | |||
return Err(SinkError::Doris("The length of the RisingWave column must be equal to the length of the doris column".to_string())); | |||
if rw_fields_name.len().gt(&doris_columns_desc.len()) { |
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.
Use >
here instead of gt
.
And should we allow gt
only when partial update is enabled in the with options?
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.
In theory, these are two things, gt thought that the column of rw was a downstream subset, while partial_update means opening starrocks/doris's feature
@xxhZs Any updates? |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Fixes #16633
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
we can add partial_columns in doris sink with option.
like
create sink with(doris.partial_columns = 'true')
https://doris.apache.org/zh-CN/docs/2.0/data-operate/update/update-of-unique-model/