You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/04/20 02:47:23 UTC
[GitHub] [hudi] xiarixiaoyao commented on pull request #5364: [HUDI-3204] Fixing partition-values being derived from partition-path instead of source columns
xiarixiaoyao commented on PR #5364:
URL: https://github.com/apache/hudi/pull/5364#issuecomment-1103415549
@alexeykudinkin now we use hoodieparquetFile,
we may need to modfy this function to reduce the impact of schema evolution
HoodieDataSourceHelper.getConfigurationWithInternalSchema
```
def getConfigurationWithInternalSchema(conf: Configuration, internalSchema: InternalSchema, tablePath: String, validCommits: String): Configuration = {
val querySchemaString = SerDeHelper.toJson(internalSchema)
if (!querySchemaString.isEmpty) {
conf.set(SparkInternalSchemaConverter.HOODIE_QUERY_SCHEMA, querySchemaString)
conf.set(SparkInternalSchemaConverter.HOODIE_TABLE_PATH, tablePath)
conf.set(SparkInternalSchemaConverter.HOODIE_VALID_COMMITS_LIST, validCommits)
}
conf
}
```
--
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-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org