Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1020

StaticOptimizer should always choose a ZERO cardinality tail first

    Details

      Description

      If there is a tail in the join group with a cardinality of zero, this should always run first regardless of what else is going on with the ancestry or otherwise.

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        Mike has fixed this in the 1.3.x maintenance and development branch in r8387.

        We have back-ported this fix to the maintenance branch for 1.2.4 and 1.2.5.

        Bug fix to BLZG-1020 (StaticOptimizer should always choose a ZERO cardinality tail first) for the 1.2.5 tag. This commit is against branches/BIGDATA_RELEASE_1_2_4. The 1.2.5 release was made from this branch. A 1.2.6 release will also be made from this branch.

                    /**
                     * Always choose a ZERO cardinality tail first, regardless of
                     * ancestry.
                     * 
                     * @see <a href="http://trac.bigdata.com/ticket/955" >
                     *      StaticOptimizer should always choose a ZERO cardinality tail
                     *      first </a>
                     */
                    for (int i = 0; i < arity; i++) {
                        if (cardinality(i) == 0) {
                            preferredFirstTail = i;
                            break;
                        }
                    }
        

        I will enroll this branch in CI.

        Show
        bryanthompson bryanthompson added a comment - Mike has fixed this in the 1.3.x maintenance and development branch in r8387. We have back-ported this fix to the maintenance branch for 1.2.4 and 1.2.5. Bug fix to BLZG-1020 (StaticOptimizer should always choose a ZERO cardinality tail first) for the 1.2.5 tag. This commit is against branches/BIGDATA_RELEASE_1_2_4. The 1.2.5 release was made from this branch. A 1.2.6 release will also be made from this branch. /** * Always choose a ZERO cardinality tail first, regardless of * ancestry. * * @see <a href="http://trac.bigdata.com/ticket/955" > * StaticOptimizer should always choose a ZERO cardinality tail * first </a> */ for (int i = 0; i < arity; i++) { if (cardinality(i) == 0) { preferredFirstTail = i; break; } } I will enroll this branch in CI.

          People

          • Assignee:
            mikepersonick mikepersonick
            Reporter:
            mikepersonick mikepersonick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: