voonhous commented on code in PR #17772:
URL: https://github.com/apache/hudi/pull/17772#discussion_r2658996578


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/model/HoodieFlinkRecord.java:
##########
@@ -205,13 +206,13 @@ private Object getColumnValue(Schema recordSchema, String 
column, Properties pro
   }
 
   @Override
-  public HoodieRecord joinWith(HoodieRecord other, Schema targetSchema) {
+  public HoodieRecord joinWith(HoodieRecord other, HoodieSchema targetSchema) {
     throw new UnsupportedOperationException("Not supported for " + 
this.getClass().getSimpleName());
   }
 
   @Override
-  public HoodieRecord prependMetaFields(Schema recordSchema, Schema 
targetSchema, MetadataValues metadataValues, Properties props) {
-    int metaFieldSize = targetSchema.getFields().size() - 
recordSchema.getFields().size();
+  public HoodieRecord prependMetaFields(HoodieSchema recordSchema, 
HoodieSchema targetSchema, MetadataValues metadataValues, Properties props) {
+    int metaFieldSize = targetSchema.getAvroSchema().getFields().size() - 
recordSchema.getAvroSchema().getFields().size();

Review Comment:
   Super Nitpick. I see changes using `toAvroSchema` and `getAvroSchema`. Let's 
stick to one.
   
   Feel free to ignore this, it's very trivial. 



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