jonvex commented on code in PR #11770:
URL: https://github.com/apache/hudi/pull/11770#discussion_r1722109129
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/HoodieFileGroupReaderBasedParquetFileFormat.scala:
##########
@@ -105,15 +130,19 @@ class
HoodieFileGroupReaderBasedParquetFileFormat(tableState: HoodieTableState,
options: Map[String, String],
hadoopConf: Configuration):
PartitionedFile => Iterator[InternalRow] = {
//dataSchema is not always right due to spark bugs
- val partitionColumns = partitionSchema.fieldNames
- val preCombineField =
options.getOrElse(HoodieTableConfig.PRECOMBINE_FIELD.key, "")
- val dataSchema = StructType(tableSchema.structTypeSchema.fields.filter(f
=> !partitionColumns.contains(f.name)
- || preCombineField.equals(f.name)))
+ val dataSchema = tableSchema.structTypeSchema
Review Comment:
I think so
--
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]