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 1, 2020
1 parent 4795eee commit cc8e0b5
Show file tree
Hide file tree
Showing 19 changed files with 787 additions and 295 deletions.

This file was deleted.

Loading

0 comments on commit cc8e0b5

Please sign in to comment.