Conversation
dizzzz
left a comment
There was a problem hiding this comment.
Build is failing;
can we add tests eg from the original bug report?
06f4eea to
a12a11e
Compare
|
I applied commits from an older PR that targeted |
|
I would expect for one to many additional XQTS test cases to now pass. |
|
There seems to be zero tests that assert error |
|
I am wondering.... should this code change be 'protected' to it would not be effective for 'query 3.1' (and older) based queries? |
|
The error with code exist-db never claimed to support this optional feature, which is why I believe we do not need to guard against it. With this PR applied XPath queries will behave much more like in any other Xquery processor (namely baseX and Saxon). |
a12a11e to
48082b2
Compare
773a278 to
51e4984
Compare
duncdrum
left a comment
There was a problem hiding this comment.
as discussed needs documentation
|
An interesting idea of how to fix the issue... But it must be recognised that this small change is very significant! Before it is merged two things need to be checked carefully in great detail:
|
adamretter
left a comment
There was a problem hiding this comment.
I would like to see a full report of the before-and-after XQTS results, and a number of performance tests added that should show this does not lead to a performance regression.
Turns out, a property for the static return type is already defined by the Step super class. ContextItemExpression uses this now and its own returnType property is removed.
Fixes eXist-db#2445 By definition the following Xpaths must evaluate to an empty sequence - `<a/>[self::b]` - `<a/>/@b/c` - `<a/>/text()/b` Instead of throwing an Exception the staticReturnType of the current step and the contextInfo returnType are set to Type.EMPTY.
refs eXist-db#2445 These tests aim to ensure that certain XPath expressions no longer raise error XPST0005 as exist-db does not implement the static typing feature and this feature is even dropped entirely with the next version of XQuery.
d7d13a2 to
ee6299f
Compare
|
I see a minor - but consistent - performance improvement. Execution times of the entire test suite goes down from 693.4 seconds to 667.3 in the last XQTS run in CI. That is 3.75% faster. |
Description:
fixes #2445
Reference:
Type of tests:
XQSuite tests