nsivabalan commented on code in PR #8956:
URL: https://github.com/apache/hudi/pull/8956#discussion_r1234558685
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieCreateRecordUtils.scala:
##########
@@ -166,7 +162,14 @@ object HoodieCreateRecordUtils {
// NOTE: To make sure we properly transform records
val finalStructTypeRowWriter =
getCachedUnsafeRowWriter(sourceStructType, finalStructType)
+ var validatePreppedRecord = true
it.map { sourceRow =>
+ if (isPrepped) {
+ // For prepped records, check the record schema to make sure it
has meta fields set.
+ validateMetaFieldsInSparkRecords(sourceStructType)
+ // Do validation only once.
Review Comment:
we can remove this comment. its understandable
--
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]