set-based sequence operations
Bug #1058398 reported by
Matthias Brantner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
High
|
Paul J. Lucas |
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-
- The function should use value comparison but use false instead of an error in case of a type mismatch.
- JSONiq module
Related branches
lp:~zorba-coders/zorba/bug-1058398
- Matthias Brantner: Approve
- Paul J. Lucas: Approve
-
Diff: 1436 lines (+1101/-20)30 files modifiedChangeLog (+1/-0)
modules/CMakeLists.txt (+1/-0)
modules/sequence/CMakeLists.txt (+18/-0)
modules/sequence/sequence.xq (+75/-0)
src/context/static_context.cpp (+5/-0)
src/context/static_context.h (+1/-0)
src/functions/library.cpp (+2/-0)
src/functions/pregenerated/func_seq.cpp (+110/-0)
src/functions/pregenerated/func_seq.h (+94/-0)
src/functions/pregenerated/function_enum.h (+3/-0)
src/runtime/CMakeLists.txt (+1/-0)
src/runtime/pregenerated/iterator_enum.h (+3/-0)
src/runtime/seq/CMakeLists.txt (+19/-0)
src/runtime/seq/pregenerated/seq.cpp (+159/-0)
src/runtime/seq/pregenerated/seq.h (+173/-0)
src/runtime/seq/seq_impl.cpp (+145/-0)
src/runtime/seq/seq_util.h (+64/-0)
src/runtime/spec/mappings.xml (+24/-19)
src/runtime/spec/seq/seq.xml (+65/-0)
src/runtime/visitors/pregenerated/planiter_visitor.h (+15/-0)
src/runtime/visitors/pregenerated/printer_visitor.cpp (+43/-0)
src/runtime/visitors/pregenerated/printer_visitor.h (+9/-0)
src/util/stl_util.h (+1/-1)
src/zorbautils/specializations.h (+46/-0)
test/rbkt/ExpQueryResults/zorba/seq/seq-value-except-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/seq/seq-value-intersect-01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/seq/seq-value-union-01.xml.res (+1/-0)
test/rbkt/Queries/zorba/seq/seq-value-except-01.xq (+7/-0)
test/rbkt/Queries/zorba/seq/seq-value-intersect-01.xq (+7/-0)
test/rbkt/Queries/zorba/seq/seq-value-union-01.xq (+7/-0)
Changed in zorba: | |
importance: | Undecided → High |
assignee: | nobody → Dana Florescu (dflorescu) |
milestone: | none → 2.9 |
tags: | added: new-functionality-requirement |
Changed in zorba: | |
milestone: | 2.9 → 3.0 |
Changed in zorba: | |
status: | New → Confirmed |
description: | updated |
Changed in zorba: | |
assignee: | Matthias Brantner (matthias-brantner) → Paul J. Lucas (paul-lucas) |
Changed in zorba: | |
status: | Confirmed → In Progress |
summary: |
- value-based sequence operations + set-based sequence operations |
description: | updated |
Changed in zorba: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Assigning this back to you, Matthias, since Dana won't be getting to it in the 3.0 timeframe. Please assess/ prioritize/ defer along with the rest of your bugs.