Comment 13 for bug 1058398

Revision history for this message
Matthias Brantner (matthias-brantner) wrote : Re: [Bug 1058398] Re: set-based sequence operations

> But that code still can raise an error XPTY0004. Do you want errors
> raised? If not, then perhaps before trying to compare two items, see if
> one is a subtype of the other: if not, interpret that to mean "not
> equal" and never perform the comparison directly.
I think it should raise an error to be consistent with the general comparison.

>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1058398
>
> Title:
> set-based sequence operations
>
> Status in Zorba - NoSQL Query Processor:
> In Progress
>
> Bug description:
> Implement the following set-based sequence function in a new sequence
> module:
>
> module namespace seq = "http://zorba.io/modules/sequence";
>
> declare function seq:set-intersect($seq1 as xs:anyAtomicType*, $seq2 as xs:anyAtomicType*) as xs:anyAtomicType*
> external;
>
> declare function seq:set-union($seq1 as xs:anyAtomicType*, $seq2 as
> xs:anyAtomicType*) as xs:anyAtomicType* external;
>
> declare function seq:set-except($seq1 as xs:anyAtomicType*, $seq2 as
> xs:anyAtomicType*) as xs:anyAtomicType* external;
>
> - The function should use value comparison but use false instead of an error in case of a type mismatch.
> - JSONiq module
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zorba/+bug/1058398/+subscriptions