You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "nsivabalan (via GitHub)" <gi...@apache.org> on 2023/05/26 17:03:10 UTC
[GitHub] [hudi] nsivabalan commented on a diff in pull request #8817: [HUDI-6269] Ensure configs of one transformer are not passed to another transformer
nsivabalan commented on code in PR #8817:
URL: https://github.com/apache/hudi/pull/8817#discussion_r1207084037
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/transform/ChainedTransformer.java:
##########
@@ -142,9 +146,13 @@ protected TypedProperties getProperties(TypedProperties properties) {
Map<String, Object> overrideKeysMap = new HashMap<>();
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
String key = (String) entry.getKey();
- if (key.endsWith("." + id)) {
+ String keyId = key.replaceAll(".*\\.", "");
+ if (keyId.equals(id)) {
overrideKeysMap.put(key.substring(0, key.length() - (id.length() + 1)), entry.getValue());
}
+ if (transformerIds.contains(keyId)) {
Review Comment:
should this go into the if block ?
--
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@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org