haifxu commented on code in PR #6571:
URL: https://github.com/apache/inlong/pull/6571#discussion_r1027486430
##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/sort/util/FieldInfoUtils.java:
##########
@@ -172,7 +174,7 @@ public static FormatInfo convertFieldFormat(String type) {
*/
public static FormatInfo convertFieldFormat(String type, String format) {
FormatInfo formatInfo;
- FieldType fieldType = FieldType.forName(type);
+ FieldType fieldType =
FieldType.forName(StringUtils.substringBefore(type, LEFT_BRACKET));
Review Comment:
The sink table was created before this, and the field type here is only used
for `sort` and does not require length.

--
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]