You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "Yizhou-Yang (via GitHub)" <gi...@apache.org> on 2023/02/02 05:22:21 UTC
[GitHub] [inlong] Yizhou-Yang commented on a diff in pull request #7289: [INLONG-7292][Sort] Accurately detect and archive dirty data for Doris/StarRocks/JDBC
Yizhou-Yang commented on code in PR #7289:
URL: https://github.com/apache/inlong/pull/7289#discussion_r1094040106
##########
inlong-sort/sort-connectors/base/src/main/java/org/apache/inlong/sort/base/dirty/DirtySinkHelper.java:
##########
@@ -136,6 +178,51 @@ public void invokeMultiple(T dirtyData, DirtyType dirtyType, Throwable e,
}
}
+ private String regexReplace(String pattern, DirtyType dirtyType,
+ String dirtyMessage, List<String> actualIdentifier) throws IOException {
+
+ if (pattern == null) {
+ return null;
+ }
+
+ final Pattern REGEX_PATTERN = Pattern.compile("\\$\\{\\s*([\\w.-]+)\\s*}", Pattern.CASE_INSENSITIVE);
Review Comment:
added
--
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-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org