Comment 11 for bug 1058398

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

You should look at src/runtime/booleans/BooleanImpl.cpp:738.

This handles general comparison which I believe is the semantics we want to have
if we have heterogeneous sequences.

Matthias

On Sep 25, 2013, at 3:23 PM, "Paul J. Lucas" <email address hidden> wrote:

> FYI: similar to the way the casting code used to be, having this code
> return false rather than throw an exception for incomparable items will
> needlessly construct expensive ZorbaException objects. There's currently
> no way to ask "are Items i and j comparable to each other?".
>
> --
> 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