Conversation
|
We will support target columns via column names with this. |
|
@wuchong Please help review to see if there is anything missing here |
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/sink/FlussSinkBuilder.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/sink/FlussSinkITCase.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/sink/FlussSinkITCase.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/sink/FlussSinkITCase.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/sink/FlussSinkITCase.java
Outdated
Show resolved
Hide resolved
fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/sink/FlussSinkITCase.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| /** Set the row type for the sink. */ | ||
| public FlussSinkBuilder<InputT> setRowType(RowType rowType) { |
There was a problem hiding this comment.
The tableRowType can also be retrieved from TableInfo.
There was a problem hiding this comment.
@wuchong TableInfo return a Fluss rowType, however the writer constructors require A Flink rowType.. do we have any build-in converters for the row types as well?
9a8718e to
6c08c13
Compare
6c08c13 to
e718d3c
Compare
|
@wuchong Thank you for your comments. I left one comment and addressed the rest. Let me know if there is anything I missed |
wuchong
left a comment
There was a problem hiding this comment.
I added a commit to improve it a bit. Will merge it once CI is passed.
| } | ||
|
|
||
| /** Set target column indexes. */ | ||
| public FlussSinkBuilder<InputT> setPartialUpdateColumns(int[] partialUpdateColumns) { |
There was a problem hiding this comment.
I removed this method because the builder doesn't currently support partial updates. We can reintroduce it once partial update support to the DataStream API in the future. Since it's a public API, making changes after release will be difficult, so it's better to wait until the feature is ready. Additionally, I think using field names instead of field indexes would be more user-friendly and less error-prone.
No description provided.