JNSimba commented on a change in pull request #7457:
URL: https://github.com/apache/incubator-doris/pull/7457#discussion_r774899291



##########
File path: 
extension/flink-doris-connector/src/main/java/org/apache/doris/flink/table/DorisDynamicOutputFormat.java
##########
@@ -113,24 +133,26 @@ public DorisDynamicOutputFormat(DorisOptions option,
                     LINE_DELIMITER_DEFAULT);
         }
 
-        this.fieldNames = fieldNames;
-        this.jsonFormat = 
FORMAT_JSON_VALUE.equals(executionOptions.getStreamLoadProp().getProperty(FORMAT_KEY));
-        this.fieldGetters = new RowData.FieldGetter[logicalTypes.length];
-        for (int i = 0; i < logicalTypes.length; i++) {
-            fieldGetters[i] = createFieldGetter(logicalTypes[i], i);
+        //add column key
+        if (!streamLoadProp.containsKey(COLUMNS_KEY)) {
+            String columns = String.join(",", 
Arrays.stream(fieldNames).map(item -> String.format("`%s`", 
item.trim().replace("`", ""))).collect(Collectors.toList()));

Review comment:
       Thank you for reminding me that I ignored the datastream submission 
method




-- 
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-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to