fuweng11 commented on code in PR #10329:
URL: https://github.com/apache/inlong/pull/10329#discussion_r1625646985
##########
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/fieldtype/strategy/ClickHouseFieldTypeStrategy.java:
##########
@@ -53,6 +74,6 @@ public String getFieldTypeMapping(String sourceType) {
}
}
String dataType = StringUtils.substringBefore(sourceType,
LEFT_BRACKET).toUpperCase();
- return reader.getFIELD_TYPE_MAPPING_MAP().getOrDefault(dataType,
sourceType.toUpperCase());
+ return
reader.getSOURCE_TO_SINK_FIELD_TYPE_MAPPING_MAP().getOrDefault(dataType,
sourceType.toUpperCase());
Review Comment:
Fixed.
##########
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/fieldtype/FieldTypeMappingReader.java:
##########
@@ -59,7 +64,10 @@ public class FieldTypeMappingReader implements Serializable {
@Getter
protected final String streamType;
@Getter
- protected final Map<String, String> FIELD_TYPE_MAPPING_MAP =
Maps.newHashMap();
+ protected final Map<String, String> STREAM_TO_SINK_FIELD_TYPE_MAPPING_MAP
= Maps.newHashMap();
+
+ @Getter
+ protected final Map<String, String> SOURCE_TO_SINK_FIELD_TYPE_MAPPING_MAP
= Maps.newHashMap();
Review Comment:
Fixed.
--
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]