zhuqi-lucas commented on PR #14418:
URL: https://github.com/apache/datafusion/pull/14418#issuecomment-2630139098
```rust
error: use of deprecated constant
`arrow::datatypes::MAX_DECIMAL_FOR_EACH_PRECISION`: Use
MAX_DECIMAL128_FOR_EACH_PRECISION (note indexes are different)
--> datafusion/optimizer/src/unwrap_cast_in_comparison.rs:29:25
|
29 | DataType, TimeUnit, MAX_DECIMAL_FOR_EACH_PRECISION,
MIN_DECIMAL_FOR_EACH_PRECISION,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: use of deprecated constant
`arrow::datatypes::MIN_DECIMAL_FOR_EACH_PRECISION`: Use
MIN_DECIMAL_FOR_EACH_PRECISION (note indexes are different)
--> datafusion/optimizer/src/unwrap_cast_in_comparison.rs:29:57
|
29 | DataType, TimeUnit, MAX_DECIMAL_FOR_EACH_PRECISION,
MIN_DECIMAL_FOR_EACH_PRECISION,
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated constant
`arrow::datatypes::MIN_DECIMAL_FOR_EACH_PRECISION`: Use
MIN_DECIMAL_FOR_EACH_PRECISION (note indexes are different)
--> datafusion/optimizer/src/unwrap_cast_in_comparison.rs:372:13
|
372 | MIN_DECIMAL_FOR_EACH_PRECISION[*precision as usize - 1],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: use of deprecated constant
`arrow::datatypes::MAX_DECIMAL_FOR_EACH_PRECISION`: Use
MAX_DECIMAL128_FOR_EACH_PRECISION (note indexes are different)
--> datafusion/optimizer/src/unwrap_cast_in_comparison.rs:373:13
|
373 | MAX_DECIMAL_FOR_EACH_PRECISION[*precision as usize - 1],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
The clippy complain not related to this PR.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]