vernedeng commented on code in PR #8952:
URL: https://github.com/apache/inlong/pull/8952#discussion_r1332388168
##########
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:
There is one constant named "inlong_data_time"
--
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]