voonhous opened a new issue, #21084: URL: https://github.com/apache/hudi/issues/21084
### Describe the problem `hoodie.fileIndex.dataSkippingFailureMode` is read with `spark.sqlContext.getConf` and matched against the exact strings `fallback` and `strict`, with no default case: - `SparkBaseIndexSupport#computeCandidateIsStrict` - `HoodieFileIndex#filterFileSlices` So `STRICT`, `Fallback` or a typo is accepted silently until an index lookup fails. The match then throws a `scala.MatchError` naming the config value, and the original index error is lost. ### Expected behavior The value is matched case-insensitively, and an unknown value fails with a message that names the config and its valid values and keeps the index error as the cause. ### Notes #21071 adds a third copy of the same match for partition pruning, so one helper on `DataSkippingFailureMode` can serve all three. -- 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]
