Skip to content

Commit

Permalink
Fix to #20003 - Convert multiple equality/in-equality on same column …
Browse files Browse the repository at this point in the history
…joined by Or/Else into SQL IN expression

Various optimizations to queries with IN:

- a == X || a == Y -> a IN (X, Y)
- a != X && a != Y -> a NOT IN (X, Y)
- a IN (X) -> a == X
- a IN (X, Y) || a IN (Z, W) -> a IN (X, Y, Z, W)
- a IN (X, Y, Z) && a IN (Y, Z, W) -> a IN (Y, Z)

Fixes #20003
  • Loading branch information
maumar committed Jul 8, 2020
1 parent 69a3cad commit 585a09d
Show file tree
Hide file tree
Showing 19 changed files with 790 additions and 295 deletions.

This file was deleted.

Loading

0 comments on commit 585a09d

Please sign in to comment.