jonvex commented on code in PR #9083: URL: https://github.com/apache/hudi/pull/9083#discussion_r1251109286
########## hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieCreateRecordUtils.scala: ########## @@ -243,27 +261,27 @@ object HoodieCreateRecordUtils { def getHoodieKeyAndMayBeLocationFromSparkRecord(sparkKeyGenerator: Option[SparkKeyGeneratorInterface], sourceRow: InternalRow, schema: StructType, - isPrepped: Boolean): (HoodieKey, Option[HoodieRecordLocation]) = { + isPrepped: Boolean, mergeIntoWrites: Boolean): (HoodieKey, Option[HoodieRecordLocation]) = { val recordKey = if (isPrepped) { - sourceRow.getString(HOODIE_META_COLUMNS_NAME_TO_POS.get(HoodieRecord.RECORD_KEY_METADATA_FIELD)); + sourceRow.getString(HoodieRecord.RECORD_KEY_META_FIELD_ORD) Review Comment: Add documentation here -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org