amorynan commented on code in PR #26126: URL: https://github.com/apache/doris/pull/26126#discussion_r1379660743
########## fe/fe-common/src/main/java/org/apache/doris/catalog/MapType.java: ########## @@ -192,8 +192,10 @@ protected String prettyPrint(int lpad) { } public static boolean canCastTo(MapType type, MapType targetType) { - return Type.canCastTo(type.getKeyType(), targetType.getKeyType()) - && Type.canCastTo(type.getValueType(), targetType.getValueType()); + return (targetType.getKeyType().isStringType() && type.getKeyType().isStringType() Review Comment: 2. yes , and be will handle this -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org