jsbali edited a comment on pull request #3946: URL: https://github.com/apache/hudi/pull/3946#issuecomment-1007552923
Adding more context here  Left side is the one which we get when HoodieFileIndex does its magic. Right side is the one in the commit file Since partition is expected in the middle, this [union](https://github.com/jsbali/hudi/blob/ftscan/hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/hudi/IncrementalRelation.scala#L197) fails Have made the change when we call HadoopFsRelation so that order of schema is maintained. There is one other way where we skip the HoodieFileIndex path and directly take in dir glob pattern but that is one extra config which needs to be maintained. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org