chia7712 commented on code in PR #24207:
URL: https://github.com/apache/kafka/pull/24207#discussion_r4605158162
##########
connect/transforms/src/main/java/org/apache/kafka/connect/transforms/Cast.java:
##########
Review Comment:
This is another copy-paste error. Would you mind fixing it as well?
##########
connect/transforms/src/main/java/org/apache/kafka/connect/transforms/Cast.java:
##########
@@ -387,7 +387,8 @@ private static Map<String, Schema.Type>
parseFieldTypes(List<String> mappings) {
for (String mapping : mappings) {
final String[] parts = mapping.split(":");
Review Comment:
I think the following error handling is not robust. A spec like : will cause
`ArrayIndexOutOfBoundsException` instead of `ConfigException`, I guess.
I will open a jira for it, so no need to address it in this PR.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]