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

TransformFilterEquality does not handle starting OPTIONAL well

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.7.4
    • Jena 2.10.0
    • ARQ, Optimizer
    • None

    Description

      There was one other case where our tests were stuck on a very slow query execution because transformFilterEquality failed to optimize. The problem is that the optimizer gives up whenever the WHERE clause starts with an OPTIONAL clause. The reason is that the generated algebraic formula starts with a TableUnit and this is not handled correctly.

      I have attached a patch which fixes the problem

      Attachments

        1. filter-equality-13.rq
          0.1 kB
          Simon Helsen
        2. filter-equality-13.srj
          0.3 kB
          Simon Helsen
        3. jena-294-afs-1.patch
          2 kB
          Andy Seaborne
        4. manifestPatchForOptFilterEquality.txt
          0.6 kB
          Simon Helsen
        5. patch.txt
          2 kB
          Simon Helsen
        6. patch.txt
          2 kB
          Simon Helsen
        7. test-filter-equality.zip
          8 kB
          Andy Seaborne

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shelsen Simon Helsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: