Sha256: 78b0d74055dfee1bd981581279cc1f725122c05c2dd3c36260c5a5c5dc328c26

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

- alf: |-
    project(intersect(suppliers_in_london, suppliers_in_paris), [:name])
  optimized: |-
    project(intersect(suppliers_in_london, suppliers_in_paris), [:name])
  comment: |-
    This is NOT intersect(project, project). Indeed, no supplier is both in
    Paris and in London, so the intersection is empty and hence the projection.
    In contrast, two suppliers might have the same name and be one in London
    and the other in Paris. Therefore, projecting first would return those
    two names and the intersection would not be empty.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.16.3 spec/optimizer/project/intersect.yml
alf-0.16.2 spec/optimizer/project/intersect.yml
alf-0.16.1 spec/optimizer/project/intersect.yml
alf-0.16.0 spec/optimizer/project/intersect.yml
alf-0.15.0 spec/optimizer/project/intersect.yml