Description
We tried enabling partition stats by default and had to make few fixes to get all tests working.
One of them is about HoodieTableMetadataUtil.castAndCompare which might need fixes to account for schema evolution scenario.
Please refer to https://issues.apache.org/jira/browse/HUDI-8178
and https://github.com/apache/hudi/pull/12081