diff options
author | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-20 13:28:51 +0100 |
---|---|---|
committer | Gunnar Aastrand Grimnes <gromgull@gmail.com> | 2017-01-20 13:28:51 +0100 |
commit | b1113d7b74809c5501a6762d2f4061a2a14c6f58 (patch) | |
tree | 12ba2e6f629766b1a3750bef79a54440a9b3729d /rdflib/plugins/sparql/algebra.py | |
parent | 0f38e7d67fb94367ae9e773d0936dc3718a3b027 (diff) | |
download | rdflib-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.py | 6 |
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) |