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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to