You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/11/13 19:22:15 UTC
(beam) branch users/damccorm/avroCompat created (now e20f69bc13a)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a change to branch users/damccorm/avroCompat
in repository https://gitbox.apache.org/repos/asf/beam.git
at e20f69bc13a Make AvroUtils compatible with older versions of Avro
This branch includes the following new commits:
new e20f69bc13a Make AvroUtils compatible with older versions of Avro
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(beam) 01/01: Make AvroUtils compatible with older versions of Avro
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch users/damccorm/avroCompat
in repository https://gitbox.apache.org/repos/asf/beam.git
commit e20f69bc13afe0083d6ee300ea1e192ce7a9a5e3
Author: Danny McCormick <da...@google.com>
AuthorDate: Wed Nov 13 14:22:04 2024 -0500
Make AvroUtils compatible with older versions of Avro
---
.../org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java b/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java
index bfbab6fe87f..fab44be3005 100644
--- a/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java
+++ b/sdks/java/extensions/avro/src/main/java/org/apache/beam/sdk/extensions/avro/schemas/utils/AvroUtils.java
@@ -484,7 +484,8 @@ public class AvroUtils {
public static org.apache.avro.Schema.Field toAvroField(Field field, String namespace) {
org.apache.avro.Schema fieldSchema =
getFieldSchema(field.getType(), field.getName(), namespace);
- return new org.apache.avro.Schema.Field(field.getName(), fieldSchema, field.getDescription());
+ return new org.apache.avro.Schema.Field(
+ field.getName(), fieldSchema, field.getDescription(), (Object) null);
}
private AvroUtils() {}