theirix commented on code in PR #16831:
URL: https://github.com/apache/datafusion/pull/16831#discussion_r2229103243


##########
datafusion/optimizer/src/simplify_expressions/utils.rs:
##########
@@ -168,10 +133,17 @@ pub fn is_one(s: &Expr) -> bool {
         Expr::Literal(ScalarValue::Float64(Some(v)), _) if *v == 1. => true,
         Expr::Literal(ScalarValue::Decimal128(Some(v), _p, s), _) => {
             *s >= 0
-                && POWS_OF_TEN

Review Comment:
   Rolled back to the original lookup map. The new calculation method is used 
only for Decimal256.



-- 
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]

Reply via email to