voonhous commented on code in PR #17751:
URL: https://github.com/apache/hudi/pull/17751#discussion_r2719603438
##########
hudi-common/src/main/java/org/apache/hudi/common/schema/HoodieSchema.java:
##########
@@ -921,6 +1055,9 @@ public HoodieSchema parse(InputStream inputStream) {
return fromAvroSchema(avroSchema);
} catch (IOException e) {
throw new HoodieIOException("Failed to parse schema from InputStream",
e);
+ } catch (IllegalArgumentException e) {
+ // Wrap validation exceptions to preserve the detailed error message
+ throw new HoodieAvroSchemaException(e.getMessage(), e);
Review Comment:
Done
--
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]