Commit 144f155
authored
fix: wrong simplification for >= >, <= < (#18222)
## Which issue does this PR close?
- Closes #18214.
## Rationale for this change
In find_most_restrictive_predicate, operation is ignored, but it should
be considered when boundaries are equal.
## What changes are included in this PR?
check the operator, when boundaries are equal.
## Are these changes tested?
UT
## Are there any user-facing changes?
No1 parent be85bf4 commit 144f155
File tree
2 files changed
+17
-1
lines changed- datafusion
- optimizer/src/simplify_expressions
- sqllogictest/test_files
2 files changed
+17
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
233 | 245 | | |
234 | 246 | | |
0 commit comments