Correct optimization over selection and product
This commit is contained in:
parent
fb643bd26d
commit
4d1b610605
@ -2,6 +2,7 @@
|
|||||||
- Add new class of tests for queries that are supposed to fail
|
- Add new class of tests for queries that are supposed to fail
|
||||||
- Changes to make failures in commutative operators commutative too
|
- Changes to make failures in commutative operators commutative too
|
||||||
- Added new optimization to remove useless joins
|
- Added new optimization to remove useless joins
|
||||||
|
- Correct optimization over selection and product
|
||||||
|
|
||||||
2.4
|
2.4
|
||||||
- Improve error reporting
|
- Improve error reporting
|
||||||
|
@ -573,7 +573,7 @@ def selection_and_product(n, rels):
|
|||||||
i contains attributes belonging to Q and l contains attributes belonging to both'''
|
i contains attributes belonging to Q and l contains attributes belonging to both'''
|
||||||
changes = 0
|
changes = 0
|
||||||
|
|
||||||
if n.name == SELECTION and n.child.name in (PRODUCT, JOIN, JOIN_LEFT, JOIN_RIGHT, JOIN_FULL):
|
if n.name == SELECTION and n.child.name in (PRODUCT, JOIN):
|
||||||
l_attr = n.child.left.result_format(rels)
|
l_attr = n.child.left.result_format(rels)
|
||||||
r_attr = n.child.right.result_format(rels)
|
r_attr = n.child.right.result_format(rels)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user