Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-628

TransformFilterPlacement does not always push down through assign/extend when it could

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.11.1
    • Jena 2.11.2
    • ARQ
    • None

    Description

      I've noticed a bug in the improved TransformFilterPlacement where it doesn't always do the correct thing when pushing through assign/extend in cases where the placement into BGPs is disabled.

      Consider the following example algebra:

      (filter (= ?x 123) (assign ((?z 123)) (bgp (?s ?p ?x)) ))
      

      With optFilterPlacementBGP enabled this produces the following improved algebra:

      (assign ((?z 123)) (filter (= ?x 123) (bgp (?s ?p ?x)) ))
      

      However with optFilterPlacementBGP disabled this leaves the algebra as is even though it could safely push it through the bind without pushing it into the BGP itself.

      I think the fix for this is trivial and I will apply it shortly. I will also look and see if there are other cases where it fails to push down as far as it could.

      Attachments

        Issue Links

          Activity

            People

              rvesse Rob Vesse
              rvesse Rob Vesse
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: