OR is implemented by branching the graph when an OR expression is encountered. Each OR branch is executed "in parallel" and then merged together. The merging is done using concat and then distinct.
For example if we have:
SELECT * FROM table WHERE (a=1 OR b=1) AND (a=2 OR b=2)
This supersedes #52
OR is implemented by branching the graph when an OR expression is encountered. Each OR branch is executed "in parallel" and then merged together. The merging is done using
concat
and thendistinct
.For example if we have:
We get something like: