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
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 /bugs.launchpad .net/bugs/ 1058398 zorba.io/ modules/ sequence"; intersect( $seq1 as xs:anyAtomicType*, $seq2 as xs:anyAtomicType*) as xs:anyAtomicType* except( $seq1 as xs:anyAtomicType*, $seq2 as /bugs.launchpad .net/zorba/ +bug/1058398/ +subscriptions
> 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:/
>
> 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://
>
> declare function seq:set-
> external;
>
> declare function seq:set-union($seq1 as xs:anyAtomicType*, $seq2 as
> xs:anyAtomicType*) as xs:anyAtomicType* external;
>
> declare function seq:set-
> 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:/