yashmayya commented on code in PR #13184: URL: https://github.com/apache/kafka/pull/13184#discussion_r1099951075
########## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectorConfig.java: ########## @@ -270,28 +270,28 @@ public boolean includeRecordDetailsInErrorLog() { /** * Returns the initialized list of {@link Transformation} which are specified in {@link #TRANSFORMS_CONFIG}. */ - public <R extends ConnectRecord<R>> List<Transformation<R>> transformations() { + public <R extends ConnectRecord<R>> List<TransformationStage<R>> transformations() { final List<String> transformAliases = getList(TRANSFORMS_CONFIG); - final List<Transformation<R>> transformations = new ArrayList<>(transformAliases.size()); + final List<TransformationStage<R>> transformations = new ArrayList<>(transformAliases.size()); for (String alias : transformAliases) { final String prefix = TRANSFORMS_CONFIG + "." + alias + "."; try { @SuppressWarnings("unchecked") final Transformation<R> transformation = Utils.newInstance(getClass(prefix + "type"), Transformation.class); Map<String, Object> configs = originalsWithPrefix(prefix); - Object predicateAlias = configs.remove(PredicatedTransformation.PREDICATE_CONFIG); - Object negate = configs.remove(PredicatedTransformation.NEGATE_CONFIG); + Object predicateAlias = configs.remove(TransformationStage.PREDICATE_CONFIG); + Object negate = configs.remove(TransformationStage.NEGATE_CONFIG); transformation.configure(configs); if (predicateAlias != null) { Review Comment: The default value for `PREDICATE_CONFIG` is `""` and not `null`; it looks like this check currently works fine because we're using the original configs and not the parsed configs. I wonder if we should update the default value and / or this check here to be consistent? Edit: This isn't really related to your change; just thought I'd bring it up since we were in the area. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org