Skip to content

Commit

Permalink
Fix LogicalType conversions for nested records on Avro <= 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
clairemcginty committed Jan 2, 2025
1 parent a3bfbcd commit 4bfdd79
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ private static void addLogicalTypeConversion(SpecificData model, Schema schema,
}
}

} catch (NoSuchFieldException e) {
// Avro classes without logical types (denoted by the "conversions" field)
} finally {
for (Schema.Field field : schema.getFields()) {
addLogicalTypeConversion(model, field.schema(), seenSchemas);
}
} catch (NoSuchFieldException e) {
// Avro classes without logical types (denoted by the "conversions" field)
}
}
break;
Expand Down

0 comments on commit 4bfdd79

Please sign in to comment.