reuvenlax commented on code in PR #25268:
URL: https://github.com/apache/beam/pull/25268#discussion_r1094915579
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/FieldValueTypeInformation.java:
##########
@@ -167,6 +174,15 @@ public static <T extends AnnotatedElement & Member> String
getNameOverride(
}
}
+ public static <T extends AnnotatedElement & Member> String
getFieldDescription(T member) {
Review Comment:
return value should be @Nullable
##########
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/Schema.java:
##########
@@ -1121,7 +1121,8 @@ public boolean typesEqual(Field other) {
private boolean equivalent(Field otherField, EquivalenceNullablePolicy
nullablePolicy) {
return getName().equals(otherField.getName())
- && getType().equivalent(otherField.getType(), nullablePolicy);
+ && getType().equivalent(otherField.getType(), nullablePolicy)
+ && getDescription().equals(otherField.getDescription());
Review Comment:
I'm not sure that description should be included here as it's not really
part of the type.
--
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]