JingsongLi commented on code in PR #6019: URL: https://github.com/apache/paimon/pull/6019#discussion_r2280336275
########## paimon-common/src/main/java/org/apache/paimon/utils/TypeUtils.java: ########## @@ -362,6 +388,187 @@ public static boolean isBasicType(Object obj) { return clazz.isPrimitive() || isWrapperType(clazz) || clazz.equals(String.class); } + public static String castToString(Object value, DataType dataType) + throws JsonProcessingException { + if (value == null) { + return null; + } + DataTypeRoot typeRoot = dataType.getTypeRoot(); Review Comment: Maybe just use `CastExecutors.resolve(type, VarCharType.STRING_TYPE).cast`? -- 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: issues-unsubscr...@paimon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org