vinishjail97 commented on issue #775:
URL:
https://github.com/apache/incubator-xtable/issues/775#issuecomment-3697642478
There's a change in behavior for CustomAvroKeyGenerator for
SparkHoodieTableFileIndex since 0.14.1. The `StructType(partitionFields)`
returned doesn't have the full path and causing the data validation failures.
0.14.0 version where the test passed.
```
if
(classOf[TimestampBasedKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName)
||
classOf[TimestampBasedAvroKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName)
||
classOf[CustomKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName)
||
classOf[CustomAvroKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName))
{
val partitionFields = partitionColumns.get().map(column =>
StructField(column, StringType))
StructType(partitionFields)
```
https://github.com/apache/hudi/blob/release-0.14.0/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/SparkHoodieTableFileIndex.scala#L118
This behavior was changed as part of this PR
https://github.com/apache/hudi/pull/9863/changes
--
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]