This is an automated email from the ASF dual-hosted git repository.

xudong963 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/master by this push:
     new 122837d  *: fix #1727 (#2085)
122837d is described below

commit 122837d108fdadc8b7aae149a0d49e5048041216
Author: jakevin <[email protected]>
AuthorDate: Fri Mar 25 14:45:11 2022 +0800

    *: fix #1727 (#2085)
---
 datafusion/src/optimizer/simplify_expressions.rs | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/datafusion/src/optimizer/simplify_expressions.rs 
b/datafusion/src/optimizer/simplify_expressions.rs
index e95d2e8..5927810 100644
--- a/datafusion/src/optimizer/simplify_expressions.rs
+++ b/datafusion/src/optimizer/simplify_expressions.rs
@@ -1034,11 +1034,6 @@ mod tests {
         let expr = call_fn("to_timestamp", vec![col("a")]).unwrap();
         test_evaluate(expr.clone(), expr);
 
-        // check that non foldable arguments are folded
-        // to_timestamp(a) --> to_timestamp(a) [no rewrite possible]
-        let expr = call_fn("to_timestamp", vec![col("a")]).unwrap();
-        test_evaluate(expr.clone(), expr);
-
         // volatile / stable functions should not be evaluated
         // rand() + (1 + 2) --> rand() + 3
         let fun = BuiltinScalarFunction::Random;

Reply via email to