You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/02/18 06:05:59 UTC
[GitHub] [incubator-doris-flink-connector] JNSimba commented on a change in pull request #4: When doing checkpoint, write cache data to doris to prevent loss
JNSimba commented on a change in pull request #4:
URL: https://github.com/apache/incubator-doris-flink-connector/pull/4#discussion_r809699541
##########
File path: flink-doris-connector/src/main/java/org/apache/doris/flink/table/DorisDynamicTableSink.java
##########
@@ -65,7 +66,7 @@ public SinkRuntimeProvider getSinkRuntimeProvider(Context context) {
.setExecutionOptions(executionOptions)
.setFieldDataTypes(tableSchema.getFieldDataTypes())
.setFieldNames(tableSchema.getFieldNames());
- return OutputFormatProvider.of(builder.build());
+ return new GenericDorisSinkFunction(builder.build());
Review comment:
I think it maybe better to use `SinkFunctionProvider.of(new GenericDorisSinkFunction(builder.build()))`.
And there should be has exceptions in the **type conversion** between `GenericDorisSinkFunction` and `SinkRuntimeProvider`, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org