Skip to content

Commit 8095609

Browse files
committed
fix(cube): Remove mistaken ILike to string equality optimization
1 parent 8632cc0 commit 8095609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ impl<S: SimplifyInfo> TreeNodeRewriter for Simplifier<'_, S> {
15121512
}))
15131513
}
15141514
Some(pattern_str)
1515-
if !pattern_str
1515+
if !like.case_insensitive && !pattern_str
15161516
.contains(['%', '_', escape_char].as_ref()) =>
15171517
{
15181518
// If the pattern does not contain any wildcards, we can simplify the like expression to an equality expression

0 commit comments

Comments
 (0)