summaryrefslogtreecommitdiff
path: root/rdflib/plugins/sparql/algebra.py
diff options
context:
space:
mode:
authorGunnar Aastrand Grimnes <gromgull@gmail.com>2017-01-20 13:28:51 +0100
committerGunnar Aastrand Grimnes <gromgull@gmail.com>2017-01-20 13:28:51 +0100
commitb1113d7b74809c5501a6762d2f4061a2a14c6f58 (patch)
tree12ba2e6f629766b1a3750bef79a54440a9b3729d /rdflib/plugins/sparql/algebra.py
parent0f38e7d67fb94367ae9e773d0936dc3718a3b027 (diff)
downloadrdflib-b1113d7b74809c5501a6762d2f4061a2a14c6f58.tar.gz
actually fix projection from sub-queries
fixes #607 (for real this time)
Diffstat (limited to 'rdflib/plugins/sparql/algebra.py')
-rw-r--r--rdflib/plugins/sparql/algebra.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rdflib/plugins/sparql/algebra.py b/rdflib/plugins/sparql/algebra.py
index f2f18a03..60b2a692 100644
--- a/rdflib/plugins/sparql/algebra.py
+++ b/rdflib/plugins/sparql/algebra.py
@@ -643,6 +643,12 @@ def simplify(n):
def analyse(n, children):
+ """
+ Some things can be lazily joined.
+ This propegates whether they can up the tree
+ and sets lazy flags for all joins
+ """
+
if isinstance(n, CompValue):
if n.name == 'Join':
n["lazy"] = all(children)