the-other-tim-brown commented on code in PR #17573:
URL: https://github.com/apache/hudi/pull/17573#discussion_r2620514215


##########
hudi-spark-datasource/hudi-spark3-common/src/main/scala/org/apache/spark/sql/hudi/command/MergeIntoHoodieTableCommand.scala:
##########
@@ -428,7 +427,7 @@ case class MergeIntoHoodieTableCommand(mergeInto: 
MergeIntoTable) extends Hoodie
         val orderedUpdatedFieldSeq = getOrderedUpdatedFields(updatedFieldSet)
         writeParams ++= Seq(
           WRITE_PARTIAL_UPDATE_SCHEMA.key ->
-            HoodieAvroUtils.generateProjectionSchema(fullSchema, 
orderedUpdatedFieldSeq.asJava).toString
+            HoodieAvroUtils.generateProjectionSchema(fullSchema.getAvroSchema, 
orderedUpdatedFieldSeq.asJava).toString

Review Comment:
   Let's use the `HoodieSchemaUtils` here for the `generateProjectionSchema`?



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