kennknowles commented on code in PR #41533:
URL: https://github.com/apache/beam/pull/41533#discussion_r4788909816
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/YamlUtils.java:
##########
@@ -148,7 +149,16 @@ public static Row toBeamRow(
fieldType);
return toBeamRow((Map<String, Object>) yamlValue, nestedSchema,
convertNamesToCamelCase);
} else if (fieldType.getTypeName() == Schema.TypeName.MAP) {
- return yamlValue;
+ FieldType keyType =
Preconditions.checkNotNull(fieldType.getMapKeyType());
Review Comment:
This should be either `checkArgumentNotNull` (if it is the callers fault) or
`checkStateNotNull` (if it is our fault). TBH I would expect this to fail the
checkerframework compilation.
--
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]