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

SPARQL optimizer does not consider pre-bound variables, creates wrong query

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Jena 2.11.0
    • Fix Version/s: Jena 2.11.0
    • Component/s: Optimizer
    • Labels:
      None

      Description

      There is a regression bug somewhere between 2.7.2 and 2.10.2.
      See test case which works green in the old version but fails on the
      latest snapshot. I believe the cause is that
      TransformFilterImplicitJoin.testSpecialCaseUnused() incorrectly assumes
      it can ignore the whole query if it encounters unbound variables.
      However, in my case the variables do have values, coming from the
      initial binding of the QueryExecution.

        Attachments

        1. TestPreboundFilter.java
          1 kB
          Holger Knublauch

          Activity

            People

            • Assignee:
              andy Andy Seaborne
              Reporter:
              holgerknublauch Holger Knublauch
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: