You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "fuweng11 (via GitHub)" <gi...@apache.org> on 2023/09/21 03:23:51 UTC

[GitHub] [inlong] fuweng11 commented on a diff in pull request #8952: [INLONG-8951][Manager] Support for configuring built-in fields for iceberg

fuweng11 commented on code in PR #8952:
URL: https://github.com/apache/inlong/pull/8952#discussion_r1332397101


##########
inlong-sort/sort-common/src/main/java/org/apache/inlong/sort/protocol/node/load/StarRocksLoadNode.java:
##########
@@ -171,4 +175,20 @@ public String genTableName() {
     public String getPrimaryKey() {
         return primaryKey;
     }
+
+    @Override
+    public List<FieldInfo> addMetaFields(List<FieldInfo> fieldInfos) {
+        List<String> fieldNames = fieldInfos.stream().map(FieldInfo::getName).collect(Collectors.toList());
+        if (!fieldNames.contains(MetaField.INLONG_DATA_TIME.name())) {
+            fieldInfos.add(0, new FieldInfo("inlong_data_time", new LongFormatInfo()));
+        }
+        return fieldInfos;
+    }
+
+    @Override
+    public List<FieldInfo> metaFields() {
+        List<FieldInfo> fieldInfos = new ArrayList<>();
+        fieldInfos.add(0, new FieldInfo("inlong_data_time", new LongFormatInfo()));

Review Comment:
   Done



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

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