Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-34212][SQL][FOLLOWUP] Parquet vectorized reader can read decim…
…al fields with a larger precision ### What changes were proposed in this pull request? This is a followup of apache#31357 apache#31357 added a very strong restriction to the vectorized parquet reader, that the spark data type must exactly match the physical parquet type, when reading decimal fields. This restriction is actually not necessary, as we can safely read parquet decimals with a larger precision. This PR releases this restriction a little bit. ### Why are the changes needed? To not fail queries unnecessarily. ### Does this PR introduce _any_ user-facing change? Yes, now users can read parquet decimals with mismatched `DecimalType` as long as the scale is the same and precision is larger. ### How was this patch tested? updated test. Closes apache#31443 from cloud-fan/improve. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
- Loading branch information