zddr commented on code in PR #31282: URL: https://github.com/apache/doris/pull/31282#discussion_r1500237584
########## fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPartitionUtil.java: ########## @@ -287,8 +289,9 @@ public static boolean isSyncWithPartition(MTMV mtmv, Long mtmvPartitionId, */ public static String generatePartitionName(PartitionKeyDesc desc) { String partitionName = "p_"; - partitionName += desc.toSql().trim().replaceAll("\\(|\\)|\\-|\\[|\\]|'|\\s+", "") - .replaceAll("\\(|\\)|\\,|\\[|\\]", "_"); + Pattern pattern = Pattern.compile("[^a-zA-Z0-9,]"); + Matcher matcher = pattern.matcher(desc.toSql()); + partitionName += matcher.replaceAll("").replaceAll("\\,", "_"); Review Comment: Temporarily put on hold -- 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