danny0405 commented on code in PR #13943:
URL: https://github.com/apache/hudi/pull/13943#discussion_r2365894565
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/HoodieFileGroupReaderBasedFileFormat.scala:
##########
@@ -378,13 +381,28 @@ class HoodieFileGroupReaderBasedFileFormat(tablePath:
String,
//then we will read (dataSchema + a + c) and append b. So the final
schema will be (data schema + a + c +b)
//but expected output is (data schema + a + b + c)
val pfileUtils = sparkAdapter.getSparkPartitionedFileUtils
- val partitionValues = getFixedPartitionValues(file.partitionValues,
partitionSchema, fixedPartitionIndexes)
+ val typedPartitionValues =
ensurePartitionValuesTyped(file.partitionValues, partitionSchema)
Review Comment:
> The error occurs because partition values from hive-style paths are stored
as strings
Should we fix the partition values from where thry are generated, like
`#getPartitionColumnsAsInternalRow` instead?
--
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]