the-other-tim-brown commented on code in PR #14313:
URL: https://github.com/apache/hudi/pull/14313#discussion_r2556920322
##########
hudi-common/src/main/java/org/apache/hudi/common/schema/HoodieSchema.java:
##########
@@ -718,6 +720,25 @@ public HoodieSchema parse(String jsonSchema) {
throw new HoodieAvroSchemaException("Failed to parse schema: " +
jsonSchema, e);
}
}
+
+ /**
+ * Parses a schema from an InputStream.
+ *
+ * @param inputStream the InputStream containing the JSON schema
+ * @return parsed HoodieSchema
+ * @throws java.io.IOException if reading from the stream fails
+ * @throws HoodieAvroSchemaException if the schema is invalid
+ */
+ public HoodieSchema parse(InputStream inputStream) throws
HoodieIOException {
Review Comment:
@rahil-c this currently does not throw a HoodieIOException so we should not
declare that it does.
--
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]