refactor: use Arrow decimal precision validation - #5160
Conversation
andygrove
left a comment
There was a problem hiding this comment.
LGTM pending CI. Thanks @Smallfu666
|
The one CI failure here — It's a JVM That path is disjoint from this PR: the changes are three files under Could a committer re-run that job? Thanks! |
|
Merged latest from main to re-trigger CI |
|
Thanks for merging main, @andygrove! Looks like the re-triggered run is sitting at |
Closes #5089
What changed
is_valid_decimal_precisionhelper.Decimal128Type::is_valid_decimal_precisionfrom Arrow.Why
Comet now depends on Arrow 58.4.0, which exposes the equivalent boolean precision-validation API. Keeping a local copy creates unnecessary duplication and risks the implementations diverging in the future.
Validation
cargo fmt --checkcargo clippy -p datafusion-comet-spark-expr --all-targets -- -D warningscargo test -p datafusion-comet-spark-exprCometCastSuiteCometExecSuite