#664 Indexed results contain duplicates in SA

v8.9
closed
Michael Kay
5
2012-10-08
2007-03-01
Michael Kay
No

In Saxon-SA, when an index is used to support a path expression such as doc('a.xml')/a/b/c[@d=$x], the results may be returned without sorting into document order and removing duplicates. This happens if the path expression is one that is not "naturally sorted", that is, where an explicit sort would normally be required.

This will be fixed in a patch release.

There are also cases where such expressions are not indexed when they could be. This will also be fixed.

(OptimizerSA methods tryToConvertFilterExpressionToKey and convertFilterExpressionToKey respectively).

Discussion

  • Michael Kay
    Michael Kay
    2007-03-15

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 8.9.0.3