aihai commented on a change in pull request #7207:
URL: https://github.com/apache/incubator-doris/pull/7207#discussion_r755634973
##########
File path:
extension/flink-doris-connector/src/main/java/org/apache/doris/flink/cfg/DorisExecutionOptions.java
##########
@@ -105,6 +111,25 @@ public Builder setStreamLoadProp(Properties
streamLoadProp) {
return this;
}
+ public Builder setJsonFormat() {
+ this.streamLoadProp.setProperty("format", "json");
+ this.streamLoadProp.setProperty("strip_outer_array", "true");
+ return this;
+ }
+
+ public Builder setMergeType(MergeType mergeType) {
+ this.streamLoadProp.setProperty("merge_type",
mergeType.toString());
+ return this;
+ }
+
+ public Builder setDeleteLabel(String deleteLabel, String value) {
+ if
(!MergeType.MERGE.toString().equals(this.streamLoadProp.getProperty("merge_type")))
{
+ return this;
+ }
+ this.streamLoadProp.setProperty("delete", deleteLabel + "=" +
value);
Review comment:
this.streamLoadProp.setProperty("delete", deleteflag);
How about it? If the delete flag can be any expressions, the user set the
value by "deleteflag".
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]