Skip to content

Commit

Permalink
Expand LIKE simplification: cover NULL pattern/expression and const…
Browse files Browse the repository at this point in the history
…ant (#13260)

* Expand LIKE simplification

- cover expression known not to be null
- cover NULL pattern
- cover repeated '%%' in pattern

* Simplify `EXPR LIKE 'constant'` to `expr = 'constant'`

* Correctness and style fixes

* fix typo

---------

Co-authored-by: Adrian Garcia Badaracco <[email protected]>
  • Loading branch information
findepi and adriangb authored Nov 8, 2024
1 parent f190fc6 commit 667b302
Show file tree
Hide file tree
Showing 6 changed files with 257 additions and 97 deletions.
1 change: 1 addition & 0 deletions datafusion-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions datafusion/optimizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ indexmap = { workspace = true }
itertools = { workspace = true }
log = { workspace = true }
paste = "1.0.14"
regex = { workspace = true }
regex-syntax = "0.8.0"

[dev-dependencies]
Expand Down
Loading

0 comments on commit 667b302

Please sign in to comment.