vinishjail97 commented on code in PR #19123:
URL: https://github.com/apache/hudi/pull/19123#discussion_r3502118135
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/HoodieFileGroupReaderBasedFileFormat.scala:
##########
@@ -210,7 +210,9 @@ class HoodieFileGroupReaderBasedFileFormat(tablePath:
String,
}
originalVectorTypes.map {
o: Seq[String] => o.zipWithIndex.map(a => {
- if (a._2 >= requiredSchema.length &&
mandatoryFields.contains(partitionSchema.fields(a._2 -
requiredSchema.length).name)) {
+ if (a._2 >= requiredSchema.length
Review Comment:
Done in 30b187407d — pulled the repeated `partitionSchema.fields(a._2 -
requiredSchema.length).name` into a local `val fieldName` before the predicate.
--
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]