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
jonlouie authored and maumar committed Jul 1, 2020
1 parent 4795eee commit fcf5e6a
Show file tree
Hide file tree
Showing 18 changed files with 721 additions and 280 deletions.

This file was deleted.

Loading

0 comments on commit fcf5e6a

Please sign in to comment.