trushev commented on code in PR #5830:
URL: https://github.com/apache/hudi/pull/5830#discussion_r1022524997


##########
hudi-common/src/main/java/org/apache/hudi/internal/schema/InternalSchema.java:
##########
@@ -66,6 +77,11 @@ public InternalSchema(Field... columns) {
     this(DEFAULT_VERSION_ID, Arrays.asList(columns));
   }
 
+  public InternalSchema(long versionId, Schema avroSchema) {
+    this(versionId, ((Types.RecordType) 
AvroInternalSchemaConverter.convertToField(avroSchema)).fields());
+    this.avroSchema = avroSchema;
+  }

Review Comment:
   I was an idea how to solve this one 
https://github.com/apache/hudi/pull/5830#discussion_r925340228
   But I'm going to revert in now due to 
https://github.com/apache/hudi/pull/5830#issuecomment-1314709284



-- 
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]

Reply via email to