trushev commented on code in PR #5830:
URL: https://github.com/apache/hudi/pull/5830#discussion_r1022275500
##########
hudi-common/src/main/java/org/apache/hudi/internal/schema/convert/AvroInternalSchemaConverter.java:
##########
@@ -91,6 +91,11 @@ public static InternalSchema convert(Schema schema) {
return new InternalSchema(fields);
}
+ /** Convert an avro schema into internalSchema with given versionId. */
+ public static InternalSchema convertToEmpty(Schema schema) {
+ return new InternalSchema(InternalSchema.EMPTY_SCHEMA_VERSION_ID, schema);
Review Comment:
avro schema with empty version id represents disabled schema evolution as we
don't want to affect the original avroSchema behavior
--
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]