sdf-jkl commented on code in PR #18789:
URL: https://github.com/apache/datafusion/pull/18789#discussion_r2546840359


##########
datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs:
##########
@@ -1956,6 +1962,36 @@ impl<S: SimplifyInfo> TreeNodeRewriter for 
Simplifier<'_, S> {
                 }))
             }
 
+            // =======================================
+            // unwrap_date_part_in_comparison
+            // =======================================
+            //
+            // For case:
+            // date_part(expr as data_type) op literal
+            Expr::BinaryExpr(BinaryExpr { left, op, right })
+                if 
is_date_part_expr_and_support_unwrap_date_part_in_comparison_for_binary(
+                    info, &left, op, &right,
+                ) && op.supports_propagation() =>

Review Comment:
   Removed it.



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