Merge lp:~zorba-coders/zorba/windowing-tests into lp:zorba

Proposed by Matthias Brantner
Status: Superseded
Proposed branch: lp:~zorba-coders/zorba/windowing-tests
Merge into: lp:zorba
Diff against target: 1103 lines (+522/-0)
115 files modified
test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res (+12/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res (+24/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res (+1/-0)
test/rbkt/Queries/CMakeLists.txt (+14/-0)
test/rbkt/Queries/zorba/windowing/sliding01.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding02.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding03.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding04.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding05.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding06.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/sliding07.xq (+10/-0)
test/rbkt/Queries/zorba/windowing/sliding08.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/sliding09.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding10.xq (+18/-0)
test/rbkt/Queries/zorba/windowing/sliding11.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding12.xq (+7/-0)
test/rbkt/Queries/zorba/windowing/sliding13.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/sliding14.xq (+12/-0)
test/rbkt/Queries/zorba/windowing/tumbling01.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling02.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling04.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling05.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling06.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling07.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling08.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling09.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling10.xq (+10/-0)
test/rbkt/Queries/zorba/windowing/tumbling11.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling11.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling14.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling14.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling15.spec (+2/-0)
test/rbkt/Queries/zorba/windowing/tumbling15.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling16.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling16.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling17.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling17.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling18.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling18.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling19.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling19.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling20.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling20.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling21.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling21.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling22.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling22.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling24.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling25.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling26.xq (+3/-0)
test/rbkt/Queries/zorba/windowing/tumbling27.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling28.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling29.xq (+17/-0)
test/rbkt/Queries/zorba/windowing/tumbling31.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling31.xq (+3/-0)
test/rbkt/Queries/zorba/windowing/tumbling32.xq (+19/-0)
test/rbkt/Queries/zorba/windowing/tumbling33.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling34.xq (+6/-0)
test/rbkt/Queries/zorba/windowing/tumbling35.xq (+8/-0)
test/rbkt/Queries/zorba/windowing/tumbling36.xq (+5/-0)
test/rbkt/Queries/zorba/windowing/tumbling37.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling37.xq (+8/-0)
test/rbkt/Queries/zorba/windowing/tumbling38.xq (+8/-0)
test/rbkt/Queries/zorba/windowing/tumbling39.xq (+12/-0)
test/rbkt/Queries/zorba/windowing/tumbling40.xq (+27/-0)
test/rbkt/Queries/zorba/windowing/tumbling41.xq (+9/-0)
test/rbkt/Queries/zorba/windowing/tumbling42.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling42.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling43.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling43.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling44.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/tumbling44.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling45.xq (+4/-0)
test/rbkt/Queries/zorba/windowing/tumbling46.xq (+17/-0)
test/rbkt/Queries/zorba/windowing/tumbling47.xq (+20/-0)
test/rbkt/Queries/zorba/windowing/tumbling48.xq (+18/-0)
test/rbkt/Queries/zorba/windowing/tumbling49.xq (+12/-0)
test/rbkt/Queries/zorba/windowing/windowing13.spec (+1/-0)
test/rbkt/Queries/zorba/windowing/windowing13.xq (+4/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/windowing-tests
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Till Westmann Pending
Review via email: mp+84321@code.launchpad.net

This proposal has been superseded by a proposal from 2011-12-05.

Commit message

Added more Windowing tests (some of them fail and have an associated bug). Those tests will probably make it into the W3C test suite and might be removed again then.

Description of the change

Added more Windowing tests (some of them fail and have an associated bug). Those tests will probably make it into the W3C test suite and might be removed again then.

To post a comment you must log in.
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job windowing-tests-2011-12-02T20-19-08.783Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1. Got: 1 Approve, 1 Pending.

10571. By Markos Zaharioudakis

small optimization of the group by Approved: Markos Zaharioudakis

10572. By Matthias Brantner

made destructors of Item subclasses virtual Approved: Markos Zaharioudakis, Matthias Brantner

10573. By Matthias Brantner

optimization: only have exactly two instances of boolean items in the simple store Approved: Markos Zaharioudakis, Matthias Brantner

10574. By Chris Hillery

Only create check_core_uris and associated dependencies if there are any core URIs (to prevent creating this target in standalone module projects).
 Approved: Juan Zacarias, Chris Hillery

10575. By Paul J. Lucas

undo previous changes and mark bug as expected to fail. Approved: Paul J. Lucas, Matthias Brantner

10576. By Paul J. Lucas

Things should be reverted now. Approved: Matthias Brantner, Paul J. Lucas

10577. By Matthias Brantner

fix build on windows Approved: Juan Zacarias, Matthias Brantner

10578. By Paul J. Lucas

Fixed build. Approved: Matthias Brantner, Paul J. Lucas

10579. By Matthias Brantner

exclude .bzr dir from source packages Approved: Cezar Andrei, Matthias Brantner

10580. By Markos Zaharioudakis

Cleaned up unused stuff in debugger_expr Approved: Gabriel Petrovay, Markos Zaharioudakis

10581. By Matthias Brantner

removed obsolete code guarded by the USE_POS macro Approved: Markos Zaharioudakis, Matthias Brantner

10582. By Matthias Brantner

- automatic caching of recursive, non-sequential, and deterministic functions with atomic parameter and return types
- %ann:cache and %ann:no-cache for controlling function result caching Approved: Markos Zaharioudakis, Matthias Brantner

10583. By Markos Zaharioudakis

Optimized and cleaned up SimpleTempSeq implementation and its usage. Approved: Markos Zaharioudakis

10584. By Paul J. Lucas

Applied William's patch; patched William's patch to handle UTF-8 properly. Approved: William Candillon, Paul J. Lucas

10585. By Markos Zaharioudakis

Changed functions to use getReturnType(const fo_expr*) const instead of the old one recieving a TypeManager* and std::vector<xqtref_t>.
 Approved: Markos Zaharioudakis

10586. By Markos Zaharioudakis

allow for the default element and function namespaces to be set multiple times via the c++ api Approved: Markos Zaharioudakis

10587. By Sorin Marian Nasoi <email address hidden>

Fixed the title for the links of the functions in the function summary table.
Fixed the function parameters.
Small fixes for better XHTML 1.0 conformance. Approved: Daniel Turcanu, Sorin Marian Nasoi

10588. By Gabriel Petrovay

Mature zorba debugger with graceful degradation if libedit not found. Approved: David Graf, Gabriel Petrovay

10589. By Rodolfo Ochoa

-Added createDayTimeDuration
-Added createYearMonthDuration
-Added createDocumentNode
-Added createCommentNode
-Added createPiNode Approved: Matthias Brantner, Nicolae Brinza

10590. By Markos Zaharioudakis

Fix for bug #905050 (setting and getting the context item type)
 Approved: Markos Zaharioudakis

10591. By Markos Zaharioudakis

No-node-copy optimization Approved: Markos Zaharioudakis, Matthias Brantner

10592. By Matthias Brantner

Added more Windowing tests (some of them fail and have an associated bug). Those tests will probably make it into the W3C test suite and might be removed again then. Approved: Till Westmann, Matthias Brantner

10593. By Daniel Turcanu

Fixed plan serialization of udf_function Approved: Markos Zaharioudakis, Matthias Brantner

10594. By Matthias Brantner

do not predeclare zerr Approved: Paul J. Lucas, Markos Zaharioudakis

10595. By Gabriel Petrovay

Fixes one issue and a couple of warnings in the debugger.
Removes the ZORBA_WITH_DEBUGGER_CLIENT cmake variable. Approved: David Graf, Gabriel Petrovay

10596. By Daniel Turcanu

Fixing plan serializer memory leaks Approved: Daniel Turcanu, Matthias Brantner

10597. By Markos Zaharioudakis

fixed a bug in the cloning of a var_expr Approved: Markos Zaharioudakis

10598. By Markos Zaharioudakis

fixed bug in destruction of exit_catcher_expr Approved: Markos Zaharioudakis

10599. By Matthias Brantner

fix for bug #907872 (segfault when returning an input ItemSequence from an external function) Approved: Markos Zaharioudakis, Matthias Brantner

10600. By Markos Zaharioudakis

fixed wrong assertion in var_expr::remove_set_expr Approved: Markos Zaharioudakis

10601. By Paul J. Lucas

The bug was fixed in november. Paul did a fix, and the user had to do a clean rebuild.
The bug was not related to Windows 8. Approved: Matthias Brantner, Daniel Turcanu

10602. By Matthias Brantner

implementation of string:split function that doesn't accept regular expressions but allows for streamable processing of the input (resolves bug #898074) Approved: Matthias Brantner, William Candillon

10603. By Gabriel Petrovay

Fixes the two problems on mac that break the build:
- usage of wait() without parameters
- moved the "sys/wait" include in "process_listener.h" since that uses pid_t that is available once this header is included. Approved: Paul J. Lucas, Gabriel Petrovay

10604. By Markos Zaharioudakis

during destruction, var_decl_expr must remove itself from associated var_expr Approved: Markos Zaharioudakis

10605. By Matthias Brantner

fixed bug #911585 (management of variables during eval) Approved: Markos Zaharioudakis

10606. By Paul J. Lucas

Added missing #ifndef ZORBA_NO_FULL_TEXT. Approved: Matthias Brantner, Paul J. Lucas

10607. By Matthias Brantner

Bug #911956: Zorba fails to build with gcc 4.7.0 Approved: Till Westmann, Matthias Brantner

10608. By Markos Zaharioudakis

fixed bug in no-copy rule + made zorba cmd use the for-serialization-only mode Approved: Markos Zaharioudakis

10609. By Gabriel Petrovay

Fixed libedit search on mac issue.
Added history support from libedit for UNIX platforms.
 Approved: David Graf, Gabriel Petrovay

10610. By Markos Zaharioudakis

moved atomic type codes enum to the store api Approved: Markos Zaharioudakis

10611. By Chris Hillery

Expose Item::getNamespaceBindings() through the public API. Approved: Matthias Brantner, Chris Hillery

10612. By Daniel Turcanu

Removed test versioning/link1 to avoid bug 908062 on Windows Approved: Daniel Turcanu, Chris Hillery

10613. By Gabriel Petrovay

Implemented the stop command.
Fixed termination on Windows.
TODO: still a problem on Windows when quitting the debugger client: a zorba store is shut down and in the store destructor a lock hangs the execution of xqdb forever. Not even Ctrl-C helps (probably because everything is called from the exit function in main.cpp) Approved: David Graf, Gabriel Petrovay

10614. By Markos Zaharioudakis

types-related optimization for the general comparison operator Approved: Markos Zaharioudakis

10615. By Chris Hillery

Ensure clean test run when Zorba build with ZORBA_WITH_BIG_INTEGER. Approved: Matthias Brantner, Chris Hillery

10616. By Markos Zaharioudakis

fixed timing bug in zorbacmd Approved: Markos Zaharioudakis

10617. By Markos Zaharioudakis

fixed bug in detecting mutually recursive functions Approved: Markos Zaharioudakis

10618. By Markos Zaharioudakis

fixed bug in no-copy rule Approved: Markos Zaharioudakis

10619. By Markos Zaharioudakis

Fixed bug 917923 (bug in copying outer var values into the eval dynamic context) Approved: Markos Zaharioudakis

10620. By Gabriel Petrovay

Added Ctrl-C hooking in the debugger. Ctrl-C can not kill the debugger anymore. It will only stop the running query. Approved: David Graf, Gabriel Petrovay

10621. By William Candillon

This merge adds the PHP API that was introduced at the PHP Tour 2011. Approved: Rodolfo Ochoa, William Candillon

10622. By Chris Hillery

This merge adds the PHP API that was introduced at the PHP Tour 2011. Approved: Rodolfo Ochoa, William Candillon

10623. By Sorin Marian Nasoi <email address hidden>

Added the information about the Zorba module version in the generated XQDoc documentation. Approved: William Candillon, Sorin Marian Nasoi

10624. By Markos Zaharioudakis

fix for bug #919189 Approved: Markos Zaharioudakis

10625. By Markos Zaharioudakis

fix for bug #866423 Approved: Markos Zaharioudakis

10626. By Matthias Brantner

fn:serialize avoids copying the result but returns a streamable string instead Approved: Till Westmann, Matthias Brantner

10627. By Matthias Brantner

Implemented StaticContext::getNamespaceBindings to resolve bug #905035. In the same commit, the function getNamespaceURIByPrefix was deprecated because it's superseded by the new function. Approved: Rodolfo Ochoa, Markos Zaharioudakis

10628. By Markos Zaharioudakis

fix for bug #866932 (string pool not empty on shutdown)
 Approved: Markos Zaharioudakis

10629. By Chris Hillery

Remove test case sc3_ex3 in order to merge the removal of the non-core JSON module. sc3_ex3 will be re-added along with the core JSON module. Approved: Paul J. Lucas, Chris Hillery

10630. By Markos Zaharioudakis

More types-related optimizations for the comparison operators Approved: Markos Zaharioudakis

10631. By Markos Zaharioudakis

Fixed bug involving positional var and groupby Approved: Markos Zaharioudakis

10632. By Chris Hillery

- updated the import scripts to use the latest version of XQTS, XQUTS and XQFTTS as of 25.01.2012
- added EXPECTED_FAILURES for XQFTTS XQuery and XQueryX tests
- updated the W3C conformance documentation
- included fix for the XQFTTS XQueryX tests created by Daniel in lp:~zorba-coders/zorba/xqueryx_fulltext branch Approved: Chris Hillery, Sorin Marian Nasoi

10633. By Markos Zaharioudakis

type-related optimizagtions of boolean iterators Approved: Markos Zaharioudakis

10634. By Paul J. Lucas

Migrated several unit tests to libunittest. Approved: Chris Hillery, Paul J. Lucas

10635. By Chris Hillery

Fix filename when creating library for unversioned module. Approved: Dennis Knochenwefel, Chris Hillery

10636. By Markos Zaharioudakis

type-related optimizations for sequence-type iterators Approved: Markos Zaharioudakis

10637. By Paul J. Lucas

Fixed bug 924063 (sentence is incorrectly incremented when token characters end without sentence terminator) Approved: Matthias Brantner, Paul J. Lucas

10638. By Chris Hillery

Install the XHTML DTD locally so we don't ask w3.org for it. Approved: Chris Hillery, Sorin Marian Nasoi

10639. By Chris Hillery

Added DECLARE_ZORBA_URI_FILE() for installing files of any type that we would like to load by URI. Also made built-in URI mappers look on the filesystem for any kind of URIs, not just modules and schemas. Approved: Cezar Andrei, Chris Hillery

10640. By Daniel Turcanu

several fixes for the plan serializer + implemented materialize_clause::clone() Approved: Matthias Brantner, Chris Hillery

10641. By Markos Zaharioudakis

w3c test modules-schema-context now passes Approved: Markos Zaharioudakis

10642. By Ghislain Fourny

Correcting two typos (parameter name and document debug output). Approved: Ghislain Fourny, Matthias Brantner

10643. By William Candillon

Fix for bug #918592 Approved: Chris Hillery, Rodolfo Ochoa

10644. By Chris Hillery

Several fixes related to test breakages caused by zorba-xquery.com changes:
1. Don't attempt HTTP resolution w/ HttpStream if Zorba compiled without CURL.
2. store/example_3 test: load content from zorbatest site like other tests.
3. fetch_bogus2 and impot5 test: change "ver" test module to be identified with a flworfound.org URI, so we'll get a 404 when loading it wrong. (Both example.com and zorba-xquery.com don't return 404 for unknown URLs.)
 Approved: Matthias Brantner, Chris Hillery

10645. By Rodolfo Ochoa

Added recognition for URIs without authority, this is a JAVA URI case. Approved: Rodolfo Ochoa, Cezar Andrei

10646. By Rodolfo Ochoa

added
#include "stdafx.h"

and changed uri_util.h having
ZORBA_DLL_PUBLIC extern char const uri_safe[];
ZORBA_DLL_PUBLIC extern signed char const hex2dec[]; Approved: Cezar Andrei, Matthias Brantner

10647. By Sorin Marian Nasoi <email address hidden>

Downloaded the latest version of the W3C Working Draft 13 December 2011for XQuery 3.0 F&O to be used in test "xquery_3_0". Approved: Juan Zacarias, Sorin Marian Nasoi

10648. By Ghislain Fourny

Using GET_PUL_FACTORY macro. Approved: Markos Zaharioudakis

10649. By Markos Zaharioudakis

optimization for the Item::add/removeReference methods Approved: Markos Zaharioudakis

10650. By Chris Hillery

Ensure same module is not declared twice with the same version number (including twice with no declared version).
 Approved: Sorin Marian Nasoi, Chris Hillery

10651. By Chris Hillery

Download v1.0 of http-client. Approved: Sorin Marian Nasoi, Chris Hillery

10652. By Ghislain Fourny

Made same-directory simple store includes. Approved: Matthias Brantner, Markos Zaharioudakis

10653. By Paul J. Lucas

Simple fix. Approved: William Candillon, Paul J. Lucas

10654. By Markos Zaharioudakis

use SUBSEQUENCE_INT function, instead of SUBSEQUENCE_INT in partial_eval_eq rewrite rule Approved: Markos Zaharioudakis

10655. By Paul J. Lucas

Added clone(). Approved: Matthias Brantner, William Candillon

10656. By Markos Zaharioudakis

small optimization for subsequence iterators Approved: Markos Zaharioudakis

10657. By Markos Zaharioudakis

1. Optimization: preallocate and reuse temp sequence iterator for LetVarITerator and CtxVarIterator.
2. Optimization: enhanced push-down of positional predicate into LetVarITerator and CtxVarIterator. Approved: Markos Zaharioudakis

10658. By Markos Zaharioudakis

Fixed bug #872288 Approved: Markos Zaharioudakis

10659. By Till Westmann

added a new unit test for the plan serializer Approved: Matthias Brantner, Till Westmann

10660. By Markos Zaharioudakis

Fixed bug #867022 Approved: Markos Zaharioudakis

10661. By Markos Zaharioudakis

fix for bug #867266 Approved: Markos Zaharioudakis

10662. By Paul J. Lucas

New JSON parser and module. Approved: Sorin Marian Nasoi, Paul J. Lucas

10663. By Paul J. Lucas

- Added transcode_streambuf
- file:read-text now respects encodings
- http:send-request now respects encodings Approved: Matthias Brantner, Paul J. Lucas

10664. By Markos Zaharioudakis

Optimization: changed the implementation of the free-vars annotation and got rid of the annotations map in expressions Approved: Markos Zaharioudakis

10665. By Matthias Brantner

Put the state file written by the uuid functionality into the system's temp directory (temporary solution). Approved: Till Westmann, Matthias Brantner

10666. By Paul J. Lucas

Fixed return type. Approved: Juan Zacarias, Matthias Brantner, Paul J. Lucas

10667. By Matthias Brantner

added two api functions to introspect the functions of a static context Approved: Till Westmann, Matthias Brantner

10668. By William Candillon <email address hidden>

Fix typos in doxygen documentation. Approved: Cezar Andrei, Matthias Brantner

10669. By William Candillon

Update the XQDDF ebnf to fit with XQuery 3.0 syntax. Approved: William Candillon, Matthias Brantner

10670. By William Candillon

Add support for return and parameters elements in XQDoc. Approved: William Candillon, Sorin Marian Nasoi

10671. By Rodolfo Ochoa

Just some precompiled headers included Approved: Matthias Brantner, Cezar Andrei

10672. By William Candillon

XQuery 3.0 concat operator Approved: Matthias Brantner, William Candillon

10673. By David Graf

Added the new external variable value tests that will be added to the w3c testsuite to the zorba rbkt tests. Inclusive the failing once. Added launchpad entries for them and marked the tests as expected failures. Approved: Matthias Brantner, David Graf

10674. By Chris Hillery

Update data-cleaning module to release 1.0 (fixes conversion tests).
 Approved: Sorin Marian Nasoi, Chris Hillery

10675. By William Candillon

Add --compile-plan and --execute-plan option to zorba command line.
Example:
zorba -q 1+1 --compile-plan > test.xqc
zorba -q test.xqc -f --execute-plan Approved: William Candillon, Matthias Brantner

10676. By Chris Hillery

Error checking for DownloadModules.cmake; try three times on failures.
 Approved: Sorin Marian Nasoi, Chris Hillery

10677. By Matthias Brantner

more efficient implementation of xs:base64Binary items Approved: Till Westmann, Matthias Brantner

10678. By Ghislain Fourny

Makes same-directory store includes in the headers as well. Approved: Till Westmann, Matthias Brantner

10679. By Markos Zaharioudakis

Fixed bug in codegen: do not create a materialize clause if one exists already Approved: Markos Zaharioudakis

10680. By William Candillon

Remove conflicting shortcut -e for --execute-plan option. Approved: Matthias Brantner, William Candillon

10681. By Ghislain Fourny

Replacing ulong positions with xs_integer for positions in collections. Approved: Ghislain Fourny, Matthias Brantner

10682. By Ghislain Fourny

Refactored CollectionSet class. zorba::store::CollectionSet is abstract, zorba::simplestore::SimpleCollectionSet is its implementation for the simple store. Approved: Matthias Brantner, Till Westmann

10683. By Paul J. Lucas

Fixed bug 942808. Approved: Matthias Brantner, Paul J. Lucas

10684. By Markos Zaharioudakis

removed properties-generating scripts and restored zorba_properties.h and store_properties.h files. Approved: Markos Zaharioudakis

10685. By Daniel Turcanu

Making https work on Windows. Approved: Gabriel Petrovay, Sorin Marian Nasoi

10686. By Ghislain Fourny

Refactored QName pool and QNameItem class. Approved: Markos Zaharioudakis

10687. By Sorin Marian Nasoi <email address hidden>

Updated the web crawler tutorial. Approved: Nicolae Brinza, Sorin Marian Nasoi

10688. By William Candillon

Optimize iterator generation for the concat operator (fixes bug #942011) Approved: Matthias Brantner, Markos Zaharioudakis

10689. By Paul J. Lucas

Better implementation of ZORBA_WITH_BIG_INTEGER=OFF: now limited to 63 bits (for a 64-bit implementation of a long long). Also added build_options.dox. Approved: Markos Zaharioudakis, Matthias Brantner

10690. By Markos Zaharioudakis

fixed bug involing eval and the no-copy rule Approved: Markos Zaharioudakis

10691. By Matthias Brantner

fix for bug #943788 (streamable string is not seekable) Approved: Till Westmann, Matthias Brantner

10692. By Federico Cavalieri <federico@M702X>

Fixed bug #912579 (validate-in-place on non-root elements)
Fixed merge of updput primitives
Fixed merge conflict. Approved: Markos Zaharioudakis, Cezar Andrei

10693. By Markos Zaharioudakis

Added test that illustrates bug #944002 Approved: Markos Zaharioudakis

10694. By Markos Zaharioudakis

Fixed another bug involving eval and the no-copy rule Approved: Markos Zaharioudakis

10695. By Paul J. Lucas

Added ~XmlNodeTokenizerCallback() to destroy tokenizers. Approved: Matthias Brantner, Paul J. Lucas

10696. By Ghislain Fourny

Introduces an abstract layer between zorba::store::collection and zorba::simplestore::SimpleCollection. Approved: Matthias Brantner, Markos Zaharioudakis

10697. By Markos Zaharioudakis

fixed bug #944002
 Approved: Markos Zaharioudakis

10698. By Ghislain Fourny

Making two non-abstract functions in simplecollection API also non-virtual. Approved: Matthias Brantner, Markos Zaharioudakis

10699. By Ghislain Fourny

Added default constructors for index classes in simple store. Approved: Markos Zaharioudakis, Matthias Brantner

10700. By Markos Zaharioudakis

Fixed bug #867024 Approved: Markos Zaharioudakis

10701. By Sorin Marian Nasoi <email address hidden>

Fixed bug lp:946896. Approved: William Candillon, Sorin Marian Nasoi

10702. By Markos Zaharioudakis

Fixed memory leak in no-copy rule Approved: Markos Zaharioudakis

10703. By Matthias Brantner

A new module that provides URL-related functions. Currently, it provides functions to do URL-decoding but other URL-related functions (e.g. to retrieve the scheme or path) will be added later. Approved: Matthias Brantner, Chris Hillery

10704. By Markos Zaharioudakis

fixes bug 924987
- extended TypeIdentifier to also support schema-element, schema-attribute
  and namespace-node sequence types
- fixed TypeOps::get_type_identifier
- added a test to the staticcollectionmanager unit test
- added operator<< for TypeIdentifier Approved: Markos Zaharioudakis, Till Westmann

10705. By Paul J. Lucas

Set dispose_data_using_delete_ = false in reserve(). Approved: Markos Zaharioudakis, Matthias Brantner

10706. By Cezar Andrei <email address hidden>

Fix for bug 891209 : validation with xsi:type returns untyped. Approved: Matthias Brantner, Markos Zaharioudakis, Cezar Andrei

10707. By Sorin Marian Nasoi <email address hidden>

- fixed the test 'moduleDocumentation': all modules that appear in ZorbaManifest.xml are checked for correct XQDoc documentation
- re-enabled the 'moduleDocumentation' test that was previously disabled. Approved: Sorin Marian Nasoi, Chris Hillery

10708. By Markos Zaharioudakis

bug fixes: some methods in atomic_item.h should have been virtual + use myChild local var in children iterators" Approved: Markos Zaharioudakis

10709. By Paul J. Lucas

Added links to full-text documentation. Approved: Matthias Brantner, Paul J. Lucas

10710. By Paul J. Lucas

fix Bug #949111: getUnsignedIntValue() not implemented for Integer Approved: Matthias Brantner, Paul J. Lucas

10711. By Paul J. Lucas

Added delete theSerStream; Approved: Matthias Brantner, Paul J. Lucas

10712. By Sorin Marian Nasoi <email address hidden>

Fix for bug lp:948712: Added a way for easy copy&paste of the import schema statements. Approved: Matthias Brantner, Sorin Marian Nasoi

10713. By Matthias Brantner

StaticCollectionManager::declaredIndexes() doesn't return temporary indexes anymore. Also isDeclaredIndex also doesn't return true if asked whether a temporary index is declared. Approved: Till Westmann, Matthias Brantner

10714. By Matthias Brantner

- fix bug #938934 "collection dml:truncate function missing"
- fixes documentation bug: raise zerr:ZDDY0003 instead of zerr:ZDDY0009 Approved: Till Westmann, Markos Zaharioudakis, Matthias Brantner

10715. By Matthias Brantner

fixed bug #951772 Comment node crashes serialization) Approved: William Candillon, Matthias Brantner

10716. By Matthias Brantner

Fixed bug #952829 (Nondeterministic annotation doesn't seem to be checked) Approved: Matthias Brantner, William Candillon

10717. By Rodolfo Ochoa

This fixes the error:
n strings remain in the pool.
and change it to a more comprehensive error with reference to document that helps to prevent the error. Approved: Matthias Brantner, Markos Zaharioudakis, Cezar Andrei

10718. By Matthias Brantner

adapted windowing tests to latest use case document + added one test for each use case which expects the input to be typed

Unmerged revisions

10718. By Matthias Brantner

adapted windowing tests to latest use case document + added one test for each use case which expects the input to be typed

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res'
2--- test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res 1970-01-01 00:00:00 +0000
3+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res 2011-12-05 23:57:26 +0000
4@@ -0,0 +1,1 @@
5+<window>1</window><window>2</window><window>3</window><window>4</window><window>5</window><window>6</window><window>7</window><window>8</window><window>9</window><window>10</window>
6
7=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res'
8--- test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res 1970-01-01 00:00:00 +0000
9+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res 2011-12-05 23:57:26 +0000
10@@ -0,0 +1,1 @@
11+<window>1 2 3</window><window>2 3 4</window><window>3 4 5</window><window>4 5 6</window><window>5 6 7</window><window>6 7 8</window><window>7 8 9</window><window>8 9 10</window><window>9 10</window><window>10</window>
12
13=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res'
14--- test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res 1970-01-01 00:00:00 +0000
15+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res 2011-12-05 23:57:26 +0000
16@@ -0,0 +1,1 @@
17+<window>1 2 3</window><window>2 3 4</window><window>3 4 5</window><window>4 5 6</window><window>5 6 7</window><window>6 7 8</window><window>7 8 9</window><window>8 9 10</window><window>9 10</window><window>10</window>
18
19=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res'
20--- test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res 1970-01-01 00:00:00 +0000
21+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res 2011-12-05 23:57:26 +0000
22@@ -0,0 +1,1 @@
23+<window>1 2 3</window><window>2 3 4</window><window>3 4 5</window><window>4 5 6</window><window>5 6 7</window><window>6 7 8</window><window>7 8 9</window><window>8 9 10</window>
24
25=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding05.xml.res'
26=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res'
27--- test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res 1970-01-01 00:00:00 +0000
28+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res 2011-12-05 23:57:26 +0000
29@@ -0,0 +1,1 @@
30+<window>1 2 3 4 5 6 7 8 9 10</window><window>2 3 4 5 6 7 8 9 10</window><window>3 4 5 6 7 8 9 10</window><window>4 5 6 7 8 9 10</window><window>5 6 7 8 9 10</window><window>6 7 8 9 10</window><window>7 8 9 10</window><window>8 9 10</window><window>9 10</window><window>10</window>
31
32=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res'
33--- test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res 1970-01-01 00:00:00 +0000
34+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res 2011-12-05 23:57:26 +0000
35@@ -0,0 +1,1 @@
36+<window>1 2 3 4 5 6 7 8 9 10 1 1 2 10 10 9</window><window>2 3 4 5 6 7 8 9 10 2 2 1 3 10 10 9</window><window>3 4 5 6 7 8 9 10 3 3 2 4 10 10 9</window><window>4 5 6 7 8 9 10 4 4 3 5 10 10 9</window><window>5 6 7 8 9 10 5 5 4 6 10 10 9</window><window>6 7 8 9 10 6 6 5 7 10 10 9</window><window>7 8 9 10 7 7 6 8 10 10 9</window><window>8 9 10 8 8 7 9 10 10 9</window><window>9 10 9 9 8 10 10 10 9</window><window>10 10 10 9 10 10 9</window>
37
38=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res'
39--- test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res 1970-01-01 00:00:00 +0000
40+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res 2011-12-05 23:57:26 +0000
41@@ -0,0 +1,1 @@
42+true
43
44=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res'
45--- test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res 1970-01-01 00:00:00 +0000
46+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res 2011-12-05 23:57:26 +0000
47@@ -0,0 +1,1 @@
48+1 2 3 4 5 6 7 8 9 10 1 1 2 10 10 9 2 3 4 5 6 7 8 9 10 2 2 1 3 10 10 9 3 4 5 6 7 8 9 10 3 3 2 4 10 10 9 4 5 6 7 8 9 10 4 4 3 5 10 10 9 5 6 7 8 9 10 5 5 4 6 10 10 9 6 7 8 9 10 6 6 5 7 10 10 9 7 8 9 10 7 7 6 8 10 10 9 8 9 10 8 8 7 9 10 10 9 9 10 9 9 8 10 10 10 9 10 10 10 9 10 10 9
49
50=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res'
51--- test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res 1970-01-01 00:00:00 +0000
52+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res 2011-12-05 23:57:26 +0000
53@@ -0,0 +1,1 @@
54+<window num="1">1 2 3</window><window num="2">2 3 4</window><window num="3">3 4 5</window><window num="4">4 5 6</window><window num="5">5 6 7</window><window num="6">6 7 8</window><window num="7">7 8 9</window><window num="8">8 9 10</window><window num="9">9 10</window><window num="10">10</window>
55
56=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res'
57--- test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res 1970-01-01 00:00:00 +0000
58+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res 2011-12-05 23:57:26 +0000
59@@ -0,0 +1,1 @@
60+<window num="1">1 2 3</window><window num="2">1 2 3</window><window num="3">4 5 6</window>
61
62=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res'
63--- test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res 1970-01-01 00:00:00 +0000
64+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res 2011-12-05 23:57:26 +0000
65@@ -0,0 +1,1 @@
66+<window>8 9 10</window><window>7 8 9</window><window>6 7 8</window><window>5 6 7</window><window>4 5 6</window><window>3 4 5</window><window>2 3 4</window><window>1 2 3</window>
67
68=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res'
69--- test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res 1970-01-01 00:00:00 +0000
70+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res 2011-12-05 23:57:26 +0000
71@@ -0,0 +1,1 @@
72+<window num="1">3 2 1</window><window num="2">6 5 4</window><window num="3">9 8 7</window>
73
74=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res'
75--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res 1970-01-01 00:00:00 +0000
76+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res 2011-12-05 23:57:26 +0000
77@@ -0,0 +1,1 @@
78+<window>1</window><window>2</window><window>3</window><window>4</window><window>5</window><window>6</window><window>7</window><window>8</window><window>9</window><window>10</window>
79
80=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res'
81--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res 1970-01-01 00:00:00 +0000
82+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res 2011-12-05 23:57:26 +0000
83@@ -0,0 +1,1 @@
84+<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window><window>10</window>
85
86=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res'
87--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res 1970-01-01 00:00:00 +0000
88+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res 2011-12-05 23:57:26 +0000
89@@ -0,0 +1,1 @@
90+<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window><window>10</window>
91
92=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res'
93--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res 1970-01-01 00:00:00 +0000
94+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res 2011-12-05 23:57:26 +0000
95@@ -0,0 +1,1 @@
96+<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window>
97
98=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling06.xml.res'
99=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res'
100--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res 1970-01-01 00:00:00 +0000
101+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res 2011-12-05 23:57:26 +0000
102@@ -0,0 +1,1 @@
103+<window>1 2 3 4 5 6 7 8 9 10</window>
104
105=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res'
106--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res 1970-01-01 00:00:00 +0000
107+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res 2011-12-05 23:57:26 +0000
108@@ -0,0 +1,1 @@
109+<window>1 2 3 4 5 6 7 8 9 10</window>
110
111=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res'
112--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res 1970-01-01 00:00:00 +0000
113+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res 2011-12-05 23:57:26 +0000
114@@ -0,0 +1,1 @@
115+<window>1 2 3 4 5 6 7 8 9 10</window>
116
117=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res'
118--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res 1970-01-01 00:00:00 +0000
119+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res 2011-12-05 23:57:26 +0000
120@@ -0,0 +1,1 @@
121+<window>1 2 3 4 5 6 7 8 9 10 1 1 2 10 10 9</window>
122
123=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res'
124--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res 1970-01-01 00:00:00 +0000
125+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res 2011-12-05 23:57:26 +0000
126@@ -0,0 +1,1 @@
127+true
128
129=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling25.xml.res'
130=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res'
131--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res 1970-01-01 00:00:00 +0000
132+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res 2011-12-05 23:57:26 +0000
133@@ -0,0 +1,1 @@
134+<window>6 8 10</window><window>12 14</window>
135
136=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res'
137--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res 1970-01-01 00:00:00 +0000
138+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res 2011-12-05 23:57:26 +0000
139@@ -0,0 +1,1 @@
140+<window>6 8 10</window><window>12 14</window><window>6 8 10</window><window>12 14</window>
141
142=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res'
143--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res 1970-01-01 00:00:00 +0000
144+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res 2011-12-05 23:57:26 +0000
145@@ -0,0 +1,1 @@
146+<window>1</window><window>1</window><window>2</window><window>2</window>
147
148=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res'
149--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res 1970-01-01 00:00:00 +0000
150+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res 2011-12-05 23:57:26 +0000
151@@ -0,0 +1,1 @@
152+1 2 3 4 5 6 7 8 9 10 1 1 2 10 10 9
153
154=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res'
155--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res 1970-01-01 00:00:00 +0000
156+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res 2011-12-05 23:57:26 +0000
157@@ -0,0 +1,1 @@
158+<window>3</window><window>6</window><window>3</window><window>6</window>
159
160=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res'
161--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res 1970-01-01 00:00:00 +0000
162+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res 2011-12-05 23:57:26 +0000
163@@ -0,0 +1,12 @@
164+<run-up>
165+ <start-date>2008-01-02</start-date>
166+ <start-price>101</start-price>
167+ <end-date>2008-01-04</end-date>
168+ <end-price>103</end-price>
169+</run-up>
170+<run-up>
171+ <start-date>2008-01-05</start-date>
172+ <start-price>102</start-price>
173+ <end-date>2008-01-06</end-date>
174+ <end-price>104</end-price>
175+</run-up>
176
177=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res'
178--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res 1970-01-01 00:00:00 +0000
179+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res 2011-12-05 23:57:26 +0000
180@@ -0,0 +1,1 @@
181+<window num="1">1 2 3</window><window num="2">4 5 6</window><window num="3">7 8 9</window><window num="4">10</window>
182
183=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res'
184--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res 1970-01-01 00:00:00 +0000
185+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res 2011-12-05 23:57:26 +0000
186@@ -0,0 +1,1 @@
187+<window num="1">1 2 3</window><window num="2">4 5 6</window>
188
189=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res'
190--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res 1970-01-01 00:00:00 +0000
191+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res 2011-12-05 23:57:26 +0000
192@@ -0,0 +1,1 @@
193+<window num="1">1 2 3</window><window num="2">1 2 3</window><window num="3">4 5 6</window>
194
195=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res'
196--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res 1970-01-01 00:00:00 +0000
197+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res 2011-12-05 23:57:26 +0000
198@@ -0,0 +1,1 @@
199+<window>7 8 9</window><window>4 5 6</window><window>1 2 3</window>
200
201=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res'
202--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res 1970-01-01 00:00:00 +0000
203+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res 2011-12-05 23:57:26 +0000
204@@ -0,0 +1,1 @@
205+<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window>
206
207=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res'
208--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res 1970-01-01 00:00:00 +0000
209+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res 2011-12-05 23:57:26 +0000
210@@ -0,0 +1,1 @@
211+<window num="1">3 2 1</window><window num="2">6 5 4</window><window num="3">9 8 7</window>
212
213=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res'
214--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res 1970-01-01 00:00:00 +0000
215+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res 2011-12-05 23:57:26 +0000
216@@ -0,0 +1,24 @@
217+<run-up symbol="ABC">
218+ <start-date>2008-01-02</start-date>
219+ <start-price>101</start-price>
220+ <end-date>2008-01-04</end-date>
221+ <end-price>103</end-price>
222+</run-up>
223+<run-up symbol="ABC">
224+ <start-date>2008-01-05</start-date>
225+ <start-price>101</start-price>
226+ <end-date>2008-01-06</end-date>
227+ <end-price>104</end-price>
228+</run-up>
229+<run-up symbol="DEF">
230+ <start-date>2008-01-02</start-date>
231+ <start-price>054</start-price>
232+ <end-date>2008-01-03</end-date>
233+ <end-price>056</end-price>
234+</run-up>
235+<run-up symbol="DEF">
236+ <start-date>2008-01-04</start-date>
237+ <start-price>052</start-price>
238+ <end-date>2008-01-06</end-date>
239+ <end-price>059</end-price>
240+</run-up>
241
242=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res'
243--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res 1970-01-01 00:00:00 +0000
244+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res 2011-12-05 23:57:26 +0000
245@@ -0,0 +1,1 @@
246+<window>1 2 3 4</window><window>5 6 7 8</window><window>9 10</window>
247
248=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res'
249--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res 1970-01-01 00:00:00 +0000
250+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res 2011-12-05 23:57:26 +0000
251@@ -0,0 +1,1 @@
252+false false false false false
253
254=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res'
255--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res 1970-01-01 00:00:00 +0000
256+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res 2011-12-05 23:57:26 +0000
257@@ -0,0 +1,1 @@
258+<window>1</window><window>5</window><window>9</window>
259
260=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res'
261--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res 1970-01-01 00:00:00 +0000
262+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res 2011-12-05 23:57:26 +0000
263@@ -0,0 +1,1 @@
264+<window>1</window><window>5</window><window>9</window>
265
266=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res'
267--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res 1970-01-01 00:00:00 +0000
268+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res 2011-12-05 23:57:26 +0000
269@@ -0,0 +1,1 @@
270+<window>1</window><window>2</window><window>3</window><window>4</window><window>5</window>
271
272=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling49.xml.res'
273=== modified file 'test/rbkt/Queries/CMakeLists.txt'
274--- test/rbkt/Queries/CMakeLists.txt 2011-10-26 13:43:15 +0000
275+++ test/rbkt/Queries/CMakeLists.txt 2011-12-05 23:57:26 +0000
276@@ -294,3 +294,17 @@
277
278 EXPECTED_FAILURE(test/rbkt/zorba/reference/reference_5 868640)
279
280+
281+# Failing windowing tests.
282+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling22 899363)
283+
284+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling44 899366)
285+
286+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling14 899364)
287+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling16 899364)
288+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling15 899364)
289+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling18 899364)
290+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling19 899364)
291+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling20 899364)
292+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling17 899364)
293+EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling21 899364)
294
295=== added file 'test/rbkt/Queries/zorba/windowing/sliding01.xq'
296--- test/rbkt/Queries/zorba/windowing/sliding01.xq 1970-01-01 00:00:00 +0000
297+++ test/rbkt/Queries/zorba/windowing/sliding01.xq 2011-12-05 23:57:26 +0000
298@@ -0,0 +1,4 @@
299+for sliding window $w in (1 to 10)
300+start $s when true()
301+end $e when true()
302+return <window>{$w}</window>
303
304=== added file 'test/rbkt/Queries/zorba/windowing/sliding02.xq'
305--- test/rbkt/Queries/zorba/windowing/sliding02.xq 1970-01-01 00:00:00 +0000
306+++ test/rbkt/Queries/zorba/windowing/sliding02.xq 2011-12-05 23:57:26 +0000
307@@ -0,0 +1,5 @@
308+for sliding window $w in (1 to 10)
309+start $s when true()
310+end $e when $e - $s eq 2
311+return <window>{$w}</window>
312+
313
314=== added file 'test/rbkt/Queries/zorba/windowing/sliding03.xq'
315--- test/rbkt/Queries/zorba/windowing/sliding03.xq 1970-01-01 00:00:00 +0000
316+++ test/rbkt/Queries/zorba/windowing/sliding03.xq 2011-12-05 23:57:26 +0000
317@@ -0,0 +1,5 @@
318+for sliding window $w in (1 to 10)
319+start $s at $x when true()
320+end $e at $y when $y - $x eq 2
321+return <window>{$w}</window>
322+
323
324=== added file 'test/rbkt/Queries/zorba/windowing/sliding04.xq'
325--- test/rbkt/Queries/zorba/windowing/sliding04.xq 1970-01-01 00:00:00 +0000
326+++ test/rbkt/Queries/zorba/windowing/sliding04.xq 2011-12-05 23:57:26 +0000
327@@ -0,0 +1,4 @@
328+for sliding window $w in (1 to 10)
329+start $s at $x when true()
330+only end $e at $y when $y - $x eq 2
331+return <window>{$w}</window>
332
333=== added file 'test/rbkt/Queries/zorba/windowing/sliding05.xq'
334--- test/rbkt/Queries/zorba/windowing/sliding05.xq 1970-01-01 00:00:00 +0000
335+++ test/rbkt/Queries/zorba/windowing/sliding05.xq 2011-12-05 23:57:26 +0000
336@@ -0,0 +1,4 @@
337+for sliding window $w in (1 to 10)
338+start $s when true()
339+only end $e when false()
340+return <window>{$w}</window>
341
342=== added file 'test/rbkt/Queries/zorba/windowing/sliding06.xq'
343--- test/rbkt/Queries/zorba/windowing/sliding06.xq 1970-01-01 00:00:00 +0000
344+++ test/rbkt/Queries/zorba/windowing/sliding06.xq 2011-12-05 23:57:26 +0000
345@@ -0,0 +1,6 @@
346+declare namespace window = "foo:bar";
347+
348+for sliding window $"foo:bar":w in (1 to 10)
349+start $s when true()
350+end $e when false()
351+return <window>{$window:w}</window>
352
353=== added file 'test/rbkt/Queries/zorba/windowing/sliding07.xq'
354--- test/rbkt/Queries/zorba/windowing/sliding07.xq 1970-01-01 00:00:00 +0000
355+++ test/rbkt/Queries/zorba/windowing/sliding07.xq 2011-12-05 23:57:26 +0000
356@@ -0,0 +1,10 @@
357+declare namespace w = "foo:bar";
358+
359+for sliding window $"foo:bar":w in (1 to 10)
360+start $"foo:bar":s at $"foo:bar":x previous $"foo:bar":sp next $"foo:bar":sn when true()
361+end $"foo:bar":e at $"foo:bar":y previous $"foo:bar":ep next $"foo:bar":en when false()
362+return <window>{
363+ string-join (
364+ for $w:w in ($w:w, $w:s, $w:x, $w:sp, $w:sn, $w:e, $w:y, $w:ep, $w:en)
365+ return string($w:w), " "
366+ )}</window>
367
368=== added file 'test/rbkt/Queries/zorba/windowing/sliding08.xq'
369--- test/rbkt/Queries/zorba/windowing/sliding08.xq 1970-01-01 00:00:00 +0000
370+++ test/rbkt/Queries/zorba/windowing/sliding08.xq 2011-12-05 23:57:26 +0000
371@@ -0,0 +1,4 @@
372+for sliding window $w in (1 to 10)
373+start $s when true()
374+end $e when $e - $w eq 2
375+return <window>{$w}</window>
376
377=== added file 'test/rbkt/Queries/zorba/windowing/sliding09.xq'
378--- test/rbkt/Queries/zorba/windowing/sliding09.xq 1970-01-01 00:00:00 +0000
379+++ test/rbkt/Queries/zorba/windowing/sliding09.xq 2011-12-05 23:57:26 +0000
380@@ -0,0 +1,5 @@
381+for sliding window $w in (1 to 10)
382+start $s at $x previous $sp next $sn when true()
383+end $e at $y previous $ep next $en when false()
384+where count($w) eq 10 and $x eq 1 and empty($sp) and $sn eq 2 and $e eq 10 and $y eq 10 and $ep eq 9 and empty($en)
385+return true()
386
387=== added file 'test/rbkt/Queries/zorba/windowing/sliding10.xq'
388--- test/rbkt/Queries/zorba/windowing/sliding10.xq 1970-01-01 00:00:00 +0000
389+++ test/rbkt/Queries/zorba/windowing/sliding10.xq 2011-12-05 23:57:26 +0000
390@@ -0,0 +1,18 @@
391+for $x1 in 11
392+for $x2 in 12
393+for $x3 in 13
394+for $x4 in 14
395+for $x5 in 15
396+for $x6 in 16
397+for $x7 in 17
398+for $x8 in 18
399+for $x9 in 19
400+for sliding window $x1 in (1 to 10)
401+start $x2 at $x3 previous $x4 next $x5 when true()
402+end $x6 at $x7 previous $x8 next $x9 when false()
403+return
404+ string-join(
405+ for $i in ($x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9)
406+ return string($i), " "
407+ )
408+
409
410=== added file 'test/rbkt/Queries/zorba/windowing/sliding11.xq'
411--- test/rbkt/Queries/zorba/windowing/sliding11.xq 1970-01-01 00:00:00 +0000
412+++ test/rbkt/Queries/zorba/windowing/sliding11.xq 2011-12-05 23:57:26 +0000
413@@ -0,0 +1,5 @@
414+for sliding window $w in (1 to 10)
415+start $s when true()
416+end $e when $e - $s eq 2
417+count $r
418+return <window num="{$r}">{$w}</window>
419
420=== added file 'test/rbkt/Queries/zorba/windowing/sliding12.xq'
421--- test/rbkt/Queries/zorba/windowing/sliding12.xq 1970-01-01 00:00:00 +0000
422+++ test/rbkt/Queries/zorba/windowing/sliding12.xq 2011-12-05 23:57:26 +0000
423@@ -0,0 +1,7 @@
424+for $i in 1 to 3
425+count $r
426+for tumbling window $w in (1 to 10)
427+start $s when true()
428+end $e when $e - $s eq 2
429+where $w = $r + 1
430+return <window num="{$r}">{$w}</window>
431
432=== added file 'test/rbkt/Queries/zorba/windowing/sliding13.xq'
433--- test/rbkt/Queries/zorba/windowing/sliding13.xq 1970-01-01 00:00:00 +0000
434+++ test/rbkt/Queries/zorba/windowing/sliding13.xq 2011-12-05 23:57:26 +0000
435@@ -0,0 +1,5 @@
436+for sliding window $w in (1 to 10)
437+start $s when true()
438+only end $e when $e - $s eq 2
439+order by $w[2] descending
440+return <window>{$w}</window>
441
442=== added file 'test/rbkt/Queries/zorba/windowing/sliding14.xq'
443--- test/rbkt/Queries/zorba/windowing/sliding14.xq 1970-01-01 00:00:00 +0000
444+++ test/rbkt/Queries/zorba/windowing/sliding14.xq 2011-12-05 23:57:26 +0000
445@@ -0,0 +1,12 @@
446+for tumbling window $w in (1 to 10)
447+start $s when true()
448+only end $e when $e - $s eq 2
449+count $r
450+return
451+ <window num="{$r}">
452+ {
453+ for $i in $w
454+ order by $i descending
455+ return $i
456+ }
457+ </window>
458
459=== added file 'test/rbkt/Queries/zorba/windowing/tumbling01.xq'
460--- test/rbkt/Queries/zorba/windowing/tumbling01.xq 1970-01-01 00:00:00 +0000
461+++ test/rbkt/Queries/zorba/windowing/tumbling01.xq 2011-12-05 23:57:26 +0000
462@@ -0,0 +1,4 @@
463+for tumbling window $w in (1 to 10)
464+start $s when true()
465+end $e when true()
466+return <window>{$w}</window>
467
468=== added file 'test/rbkt/Queries/zorba/windowing/tumbling02.xq'
469--- test/rbkt/Queries/zorba/windowing/tumbling02.xq 1970-01-01 00:00:00 +0000
470+++ test/rbkt/Queries/zorba/windowing/tumbling02.xq 2011-12-05 23:57:26 +0000
471@@ -0,0 +1,5 @@
472+for tumbling window $w in (1 to 10)
473+start $s when true()
474+end $e when $e - $s eq 2
475+return <window>{$w}</window>
476+
477
478=== added file 'test/rbkt/Queries/zorba/windowing/tumbling04.xq'
479--- test/rbkt/Queries/zorba/windowing/tumbling04.xq 1970-01-01 00:00:00 +0000
480+++ test/rbkt/Queries/zorba/windowing/tumbling04.xq 2011-12-05 23:57:26 +0000
481@@ -0,0 +1,4 @@
482+for tumbling window $w in (1 to 10)
483+start $s at $x when true()
484+end $e at $y when $y - $x eq 2
485+return <window>{$w}</window>
486
487=== added file 'test/rbkt/Queries/zorba/windowing/tumbling05.xq'
488--- test/rbkt/Queries/zorba/windowing/tumbling05.xq 1970-01-01 00:00:00 +0000
489+++ test/rbkt/Queries/zorba/windowing/tumbling05.xq 2011-12-05 23:57:26 +0000
490@@ -0,0 +1,5 @@
491+for tumbling window $w in (1 to 10)
492+start $s at $x when true()
493+only end $e at $y when $y - $x eq 2
494+return <window>{$w}</window>
495+
496
497=== added file 'test/rbkt/Queries/zorba/windowing/tumbling06.xq'
498--- test/rbkt/Queries/zorba/windowing/tumbling06.xq 1970-01-01 00:00:00 +0000
499+++ test/rbkt/Queries/zorba/windowing/tumbling06.xq 2011-12-05 23:57:26 +0000
500@@ -0,0 +1,4 @@
501+for tumbling window $w in (1 to 10)
502+start $s when true()
503+only end $e when false()
504+return <window>{$w}</window>
505
506=== added file 'test/rbkt/Queries/zorba/windowing/tumbling07.xq'
507--- test/rbkt/Queries/zorba/windowing/tumbling07.xq 1970-01-01 00:00:00 +0000
508+++ test/rbkt/Queries/zorba/windowing/tumbling07.xq 2011-12-05 23:57:26 +0000
509@@ -0,0 +1,4 @@
510+for tumbling window $w in (1 to 10)
511+start $s when true()
512+end $e when false()
513+return <window>{$w}</window>
514
515=== added file 'test/rbkt/Queries/zorba/windowing/tumbling08.xq'
516--- test/rbkt/Queries/zorba/windowing/tumbling08.xq 1970-01-01 00:00:00 +0000
517+++ test/rbkt/Queries/zorba/windowing/tumbling08.xq 2011-12-05 23:57:26 +0000
518@@ -0,0 +1,6 @@
519+declare namespace window = "foo:bar";
520+
521+for tumbling window $window:w in (1 to 10)
522+start $s when true()
523+end $e when false()
524+return <window>{$window:w}</window>
525
526=== added file 'test/rbkt/Queries/zorba/windowing/tumbling09.xq'
527--- test/rbkt/Queries/zorba/windowing/tumbling09.xq 1970-01-01 00:00:00 +0000
528+++ test/rbkt/Queries/zorba/windowing/tumbling09.xq 2011-12-05 23:57:26 +0000
529@@ -0,0 +1,6 @@
530+declare namespace window = "foo:bar";
531+
532+for tumbling window $"foo:bar":w in (1 to 10)
533+start $s when true()
534+end $e when false()
535+return <window>{$window:w}</window>
536
537=== added file 'test/rbkt/Queries/zorba/windowing/tumbling10.xq'
538--- test/rbkt/Queries/zorba/windowing/tumbling10.xq 1970-01-01 00:00:00 +0000
539+++ test/rbkt/Queries/zorba/windowing/tumbling10.xq 2011-12-05 23:57:26 +0000
540@@ -0,0 +1,10 @@
541+declare namespace w = "foo:bar";
542+
543+for tumbling window $"foo:bar":w in (1 to 10)
544+start $"foo:bar":s at $"foo:bar":x previous $"foo:bar":sp next $"foo:bar":sn when true()
545+end $"foo:bar":e at $"foo:bar":y previous $"foo:bar":ep next $"foo:bar":en when false()
546+return <window>{
547+ string-join (
548+ for $w:w in ($w:w, $w:s, $w:x, $w:sp, $w:sn, $w:e, $w:y, $w:ep, $w:en)
549+ return string($w:w), " "
550+ )}</window>
551
552=== added file 'test/rbkt/Queries/zorba/windowing/tumbling11.spec'
553--- test/rbkt/Queries/zorba/windowing/tumbling11.spec 1970-01-01 00:00:00 +0000
554+++ test/rbkt/Queries/zorba/windowing/tumbling11.spec 2011-12-05 23:57:26 +0000
555@@ -0,0 +1,1 @@
556+Error: http://www.w3.org/2005/xqt-errors:XPST0008
557
558=== added file 'test/rbkt/Queries/zorba/windowing/tumbling11.xq'
559--- test/rbkt/Queries/zorba/windowing/tumbling11.xq 1970-01-01 00:00:00 +0000
560+++ test/rbkt/Queries/zorba/windowing/tumbling11.xq 2011-12-05 23:57:26 +0000
561@@ -0,0 +1,4 @@
562+for tumbling window $w in (1 to 10)
563+start $s when true()
564+end $e when $e - $w eq 2
565+return <window>{$w}</window>
566
567=== added file 'test/rbkt/Queries/zorba/windowing/tumbling14.spec'
568--- test/rbkt/Queries/zorba/windowing/tumbling14.spec 1970-01-01 00:00:00 +0000
569+++ test/rbkt/Queries/zorba/windowing/tumbling14.spec 2011-12-05 23:57:26 +0000
570@@ -0,0 +1,1 @@
571+Error: http://www.w3.org/2005/xqt-errors:XQST0103
572
573=== added file 'test/rbkt/Queries/zorba/windowing/tumbling14.xq'
574--- test/rbkt/Queries/zorba/windowing/tumbling14.xq 1970-01-01 00:00:00 +0000
575+++ test/rbkt/Queries/zorba/windowing/tumbling14.xq 2011-12-05 23:57:26 +0000
576@@ -0,0 +1,4 @@
577+for tumbling window $w in (1 to 10)
578+start $w when true()
579+end $e when false()
580+return <window>{$w}</window>
581
582=== added file 'test/rbkt/Queries/zorba/windowing/tumbling15.spec'
583--- test/rbkt/Queries/zorba/windowing/tumbling15.spec 1970-01-01 00:00:00 +0000
584+++ test/rbkt/Queries/zorba/windowing/tumbling15.spec 2011-12-05 23:57:26 +0000
585@@ -0,0 +1,2 @@
586+Error: http://www.w3.org/2005/xqt-errors:XQST0103
587+
588
589=== added file 'test/rbkt/Queries/zorba/windowing/tumbling15.xq'
590--- test/rbkt/Queries/zorba/windowing/tumbling15.xq 1970-01-01 00:00:00 +0000
591+++ test/rbkt/Queries/zorba/windowing/tumbling15.xq 2011-12-05 23:57:26 +0000
592@@ -0,0 +1,4 @@
593+for tumbling window $w in (1 to 10)
594+start $s when true()
595+end $w when false()
596+return <window>{$w}</window>
597
598=== added file 'test/rbkt/Queries/zorba/windowing/tumbling16.spec'
599--- test/rbkt/Queries/zorba/windowing/tumbling16.spec 1970-01-01 00:00:00 +0000
600+++ test/rbkt/Queries/zorba/windowing/tumbling16.spec 2011-12-05 23:57:26 +0000
601@@ -0,0 +1,1 @@
602+Error: http://www.w3.org/2005/xqt-errors:XQST0103
603
604=== added file 'test/rbkt/Queries/zorba/windowing/tumbling16.xq'
605--- test/rbkt/Queries/zorba/windowing/tumbling16.xq 1970-01-01 00:00:00 +0000
606+++ test/rbkt/Queries/zorba/windowing/tumbling16.xq 2011-12-05 23:57:26 +0000
607@@ -0,0 +1,4 @@
608+for tumbling window $w in (1 to 10)
609+start $s at $w when true()
610+end $e when false()
611+return <window>{$w}</window>
612
613=== added file 'test/rbkt/Queries/zorba/windowing/tumbling17.spec'
614--- test/rbkt/Queries/zorba/windowing/tumbling17.spec 1970-01-01 00:00:00 +0000
615+++ test/rbkt/Queries/zorba/windowing/tumbling17.spec 2011-12-05 23:57:26 +0000
616@@ -0,0 +1,1 @@
617+Error: http://www.w3.org/2005/xqt-errors:XQST0103
618
619=== added file 'test/rbkt/Queries/zorba/windowing/tumbling17.xq'
620--- test/rbkt/Queries/zorba/windowing/tumbling17.xq 1970-01-01 00:00:00 +0000
621+++ test/rbkt/Queries/zorba/windowing/tumbling17.xq 2011-12-05 23:57:26 +0000
622@@ -0,0 +1,4 @@
623+for tumbling window $w in (1 to 10)
624+start $s when true()
625+end $e at $w when false()
626+return <window>{$w}</window>
627
628=== added file 'test/rbkt/Queries/zorba/windowing/tumbling18.spec'
629--- test/rbkt/Queries/zorba/windowing/tumbling18.spec 1970-01-01 00:00:00 +0000
630+++ test/rbkt/Queries/zorba/windowing/tumbling18.spec 2011-12-05 23:57:26 +0000
631@@ -0,0 +1,1 @@
632+Error: http://www.w3.org/2005/xqt-errors:XQST0103
633
634=== added file 'test/rbkt/Queries/zorba/windowing/tumbling18.xq'
635--- test/rbkt/Queries/zorba/windowing/tumbling18.xq 1970-01-01 00:00:00 +0000
636+++ test/rbkt/Queries/zorba/windowing/tumbling18.xq 2011-12-05 23:57:26 +0000
637@@ -0,0 +1,4 @@
638+for tumbling window $w in (1 to 10)
639+start $s previous $w when true()
640+end $e when false()
641+return <window>{$w}</window>
642
643=== added file 'test/rbkt/Queries/zorba/windowing/tumbling19.spec'
644--- test/rbkt/Queries/zorba/windowing/tumbling19.spec 1970-01-01 00:00:00 +0000
645+++ test/rbkt/Queries/zorba/windowing/tumbling19.spec 2011-12-05 23:57:26 +0000
646@@ -0,0 +1,1 @@
647+Error: http://www.w3.org/2005/xqt-errors:XQST0103
648
649=== added file 'test/rbkt/Queries/zorba/windowing/tumbling19.xq'
650--- test/rbkt/Queries/zorba/windowing/tumbling19.xq 1970-01-01 00:00:00 +0000
651+++ test/rbkt/Queries/zorba/windowing/tumbling19.xq 2011-12-05 23:57:26 +0000
652@@ -0,0 +1,4 @@
653+for tumbling window $w in (1 to 10)
654+start $s next $w when true()
655+end $e when false()
656+return <window>{$w}</window>
657
658=== added file 'test/rbkt/Queries/zorba/windowing/tumbling20.spec'
659--- test/rbkt/Queries/zorba/windowing/tumbling20.spec 1970-01-01 00:00:00 +0000
660+++ test/rbkt/Queries/zorba/windowing/tumbling20.spec 2011-12-05 23:57:26 +0000
661@@ -0,0 +1,1 @@
662+Error: http://www.w3.org/2005/xqt-errors:XQST0103
663
664=== added file 'test/rbkt/Queries/zorba/windowing/tumbling20.xq'
665--- test/rbkt/Queries/zorba/windowing/tumbling20.xq 1970-01-01 00:00:00 +0000
666+++ test/rbkt/Queries/zorba/windowing/tumbling20.xq 2011-12-05 23:57:26 +0000
667@@ -0,0 +1,4 @@
668+for tumbling window $w in (1 to 10)
669+start $s when true()
670+end $e previous $w when false()
671+return <window>{$w}</window>
672
673=== added file 'test/rbkt/Queries/zorba/windowing/tumbling21.spec'
674--- test/rbkt/Queries/zorba/windowing/tumbling21.spec 1970-01-01 00:00:00 +0000
675+++ test/rbkt/Queries/zorba/windowing/tumbling21.spec 2011-12-05 23:57:26 +0000
676@@ -0,0 +1,1 @@
677+Error: http://www.w3.org/2005/xqt-errors:XQST0103
678
679=== added file 'test/rbkt/Queries/zorba/windowing/tumbling21.xq'
680--- test/rbkt/Queries/zorba/windowing/tumbling21.xq 1970-01-01 00:00:00 +0000
681+++ test/rbkt/Queries/zorba/windowing/tumbling21.xq 2011-12-05 23:57:26 +0000
682@@ -0,0 +1,4 @@
683+for tumbling window $w in (1 to 10)
684+start $s when true()
685+end $e next $w when false()
686+return <window>{$w}</window>
687
688=== added file 'test/rbkt/Queries/zorba/windowing/tumbling22.spec'
689--- test/rbkt/Queries/zorba/windowing/tumbling22.spec 1970-01-01 00:00:00 +0000
690+++ test/rbkt/Queries/zorba/windowing/tumbling22.spec 2011-12-05 23:57:26 +0000
691@@ -0,0 +1,1 @@
692+Error: http://www.w3.org/2005/xqt-errors:XQST0103
693
694=== added file 'test/rbkt/Queries/zorba/windowing/tumbling22.xq'
695--- test/rbkt/Queries/zorba/windowing/tumbling22.xq 1970-01-01 00:00:00 +0000
696+++ test/rbkt/Queries/zorba/windowing/tumbling22.xq 2011-12-05 23:57:26 +0000
697@@ -0,0 +1,4 @@
698+for tumbling window $w in (1 to 10)
699+start $s when true()
700+end $s when false()
701+return <window>{$w}</window>
702
703=== added file 'test/rbkt/Queries/zorba/windowing/tumbling24.xq'
704--- test/rbkt/Queries/zorba/windowing/tumbling24.xq 1970-01-01 00:00:00 +0000
705+++ test/rbkt/Queries/zorba/windowing/tumbling24.xq 2011-12-05 23:57:26 +0000
706@@ -0,0 +1,6 @@
707+(: check all variables are in scope in the following clause :)
708+for tumbling window $w in (1 to 10)
709+start $s at $x previous $sp next $sn when true()
710+end $e at $y previous $ep next $en when false()
711+where count($w) eq 10 and $x eq 1 and empty($sp) and $sn eq 2 and $e eq 10 and $y eq 10 and $ep eq 9 and empty($en)
712+return true()
713
714=== added file 'test/rbkt/Queries/zorba/windowing/tumbling25.xq'
715--- test/rbkt/Queries/zorba/windowing/tumbling25.xq 1970-01-01 00:00:00 +0000
716+++ test/rbkt/Queries/zorba/windowing/tumbling25.xq 2011-12-05 23:57:26 +0000
717@@ -0,0 +1,5 @@
718+for tumbling window $w in ()
719+start $s at $x previous $sp next $sn when true()
720+end $e at $y previous $ep next $en when false()
721+return ($w, $s, $x, $sp, $sn, $e, $y, $ep, $en)
722+
723
724=== added file 'test/rbkt/Queries/zorba/windowing/tumbling26.xq'
725--- test/rbkt/Queries/zorba/windowing/tumbling26.xq 1970-01-01 00:00:00 +0000
726+++ test/rbkt/Queries/zorba/windowing/tumbling26.xq 2011-12-05 23:57:26 +0000
727@@ -0,0 +1,3 @@
728+for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
729+start $first when $first mod 3 = 0
730+return <window>{ $w }</window>
731
732=== added file 'test/rbkt/Queries/zorba/windowing/tumbling27.xq'
733--- test/rbkt/Queries/zorba/windowing/tumbling27.xq 1970-01-01 00:00:00 +0000
734+++ test/rbkt/Queries/zorba/windowing/tumbling27.xq 2011-12-05 23:57:26 +0000
735@@ -0,0 +1,4 @@
736+for $w in (1 to 2)
737+for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
738+start $first when $first mod 3 = 0
739+return <window>{ $w }</window>
740
741=== added file 'test/rbkt/Queries/zorba/windowing/tumbling28.xq'
742--- test/rbkt/Queries/zorba/windowing/tumbling28.xq 1970-01-01 00:00:00 +0000
743+++ test/rbkt/Queries/zorba/windowing/tumbling28.xq 2011-12-05 23:57:26 +0000
744@@ -0,0 +1,4 @@
745+for $w at $y in (1 to 2)
746+for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
747+start $first when $first mod 3 = 0
748+return <window>{ $y }</window>
749
750=== added file 'test/rbkt/Queries/zorba/windowing/tumbling29.xq'
751--- test/rbkt/Queries/zorba/windowing/tumbling29.xq 1970-01-01 00:00:00 +0000
752+++ test/rbkt/Queries/zorba/windowing/tumbling29.xq 2011-12-05 23:57:26 +0000
753@@ -0,0 +1,17 @@
754+for $x1 in 11
755+for $x2 in 12
756+for $x3 in 13
757+for $x4 in 14
758+for $x5 in 15
759+for $x6 in 16
760+for $x7 in 17
761+for $x8 in 18
762+for $x9 in 19
763+for tumbling window $x1 in (1 to 10)
764+start $x2 at $x3 previous $x4 next $x5 when true()
765+end $x6 at $x7 previous $x8 next $x9 when false()
766+return
767+ string-join(
768+ for $i in ($x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9)
769+ return string($i), " "
770+ )
771
772=== added file 'test/rbkt/Queries/zorba/windowing/tumbling31.spec'
773--- test/rbkt/Queries/zorba/windowing/tumbling31.spec 1970-01-01 00:00:00 +0000
774+++ test/rbkt/Queries/zorba/windowing/tumbling31.spec 2011-12-05 23:57:26 +0000
775@@ -0,0 +1,1 @@
776+Error: http://www.w3.org/2005/xqt-errors:XPST0003
777
778=== added file 'test/rbkt/Queries/zorba/windowing/tumbling31.xq'
779--- test/rbkt/Queries/zorba/windowing/tumbling31.xq 1970-01-01 00:00:00 +0000
780+++ test/rbkt/Queries/zorba/windowing/tumbling31.xq 2011-12-05 23:57:26 +0000
781@@ -0,0 +1,3 @@
782+for tumbling window $w in (1 to 10)
783+start $s next $sn previous $pn when true()
784+return <window>{$w}</window>
785
786=== added file 'test/rbkt/Queries/zorba/windowing/tumbling32.xq'
787--- test/rbkt/Queries/zorba/windowing/tumbling32.xq 1970-01-01 00:00:00 +0000
788+++ test/rbkt/Queries/zorba/windowing/tumbling32.xq 2011-12-05 23:57:26 +0000
789@@ -0,0 +1,19 @@
790+let $stock :=
791+ <stock>
792+ <closing> <date>2008-01-01</date> <price>105</price> </closing>
793+ <closing> <date>2008-01-02</date> <price>101</price> </closing>
794+ <closing> <date>2008-01-03</date> <price>102</price> </closing>
795+ <closing> <date>2008-01-04</date> <price>103</price> </closing>
796+ <closing> <date>2008-01-05</date> <price>102</price> </closing>
797+ <closing> <date>2008-01-06</date> <price>104</price> </closing>
798+ </stock>
799+for tumbling window $w in $stock//closing
800+ start $first next $second when $first/price < $second/price
801+ end $last next $beyond when $last/price > $beyond/price
802+return
803+ <run-up>
804+ <start-date>{fn:data($first/date)}</start-date>
805+ <start-price>{fn:data($first/price)}</start-price>
806+ <end-date>{fn:data($last/date)}</end-date>
807+ <end-price>{fn:data($last/price)}</end-price>
808+ </run-up>
809
810=== added file 'test/rbkt/Queries/zorba/windowing/tumbling33.xq'
811--- test/rbkt/Queries/zorba/windowing/tumbling33.xq 1970-01-01 00:00:00 +0000
812+++ test/rbkt/Queries/zorba/windowing/tumbling33.xq 2011-12-05 23:57:26 +0000
813@@ -0,0 +1,5 @@
814+for tumbling window $w in (1 to 10)
815+start $s when true()
816+end $e when $e - $s eq 2
817+count $r
818+return <window num="{$r}">{$w}</window>
819
820=== added file 'test/rbkt/Queries/zorba/windowing/tumbling34.xq'
821--- test/rbkt/Queries/zorba/windowing/tumbling34.xq 1970-01-01 00:00:00 +0000
822+++ test/rbkt/Queries/zorba/windowing/tumbling34.xq 2011-12-05 23:57:26 +0000
823@@ -0,0 +1,6 @@
824+for tumbling window $w in (1 to 10)
825+start $s when true()
826+end $e when $e - $s eq 2
827+count $r
828+where $r le 2
829+return <window num="{$r}">{$w}</window>
830
831=== added file 'test/rbkt/Queries/zorba/windowing/tumbling35.xq'
832--- test/rbkt/Queries/zorba/windowing/tumbling35.xq 1970-01-01 00:00:00 +0000
833+++ test/rbkt/Queries/zorba/windowing/tumbling35.xq 2011-12-05 23:57:26 +0000
834@@ -0,0 +1,8 @@
835+for $i in 1 to 3
836+count $r
837+for tumbling window $w in (1 to 10)
838+start $s when true()
839+end $e when $e - $s eq 2
840+where $w = $r + 1
841+return <window num="{$r}">{$w}</window>
842+
843
844=== added file 'test/rbkt/Queries/zorba/windowing/tumbling36.xq'
845--- test/rbkt/Queries/zorba/windowing/tumbling36.xq 1970-01-01 00:00:00 +0000
846+++ test/rbkt/Queries/zorba/windowing/tumbling36.xq 2011-12-05 23:57:26 +0000
847@@ -0,0 +1,5 @@
848+for tumbling window $w in (1 to 10)
849+start $s when true()
850+only end $e when $e - $s eq 2
851+order by $w[2] descending
852+return <window>{$w}</window>
853
854=== added file 'test/rbkt/Queries/zorba/windowing/tumbling37.spec'
855--- test/rbkt/Queries/zorba/windowing/tumbling37.spec 1970-01-01 00:00:00 +0000
856+++ test/rbkt/Queries/zorba/windowing/tumbling37.spec 2011-12-05 23:57:26 +0000
857@@ -0,0 +1,1 @@
858+Error: http://www.w3.org/2005/xqt-errors:XPST0008
859
860=== added file 'test/rbkt/Queries/zorba/windowing/tumbling37.xq'
861--- test/rbkt/Queries/zorba/windowing/tumbling37.xq 1970-01-01 00:00:00 +0000
862+++ test/rbkt/Queries/zorba/windowing/tumbling37.xq 2011-12-05 23:57:26 +0000
863@@ -0,0 +1,8 @@
864+for tumbling window $w1 in
865+ for tumbling window $w2 in (1 to 10)
866+ start $s when true()
867+ only end $e when $e - $s eq 2
868+ return $w2
869+start $s when true()
870+end $e when $e - $s eq 2
871+return <window>{$w2}</window>
872
873=== added file 'test/rbkt/Queries/zorba/windowing/tumbling38.xq'
874--- test/rbkt/Queries/zorba/windowing/tumbling38.xq 1970-01-01 00:00:00 +0000
875+++ test/rbkt/Queries/zorba/windowing/tumbling38.xq 2011-12-05 23:57:26 +0000
876@@ -0,0 +1,8 @@
877+for tumbling window $w1 in
878+ for tumbling window $w2 in (1 to 10)
879+ start $s when true()
880+ only end $e when $e - $s eq 2
881+ return $w2
882+start $s when true()
883+end $e when $e - $s eq 2
884+return <window>{$w1}</window>
885
886=== added file 'test/rbkt/Queries/zorba/windowing/tumbling39.xq'
887--- test/rbkt/Queries/zorba/windowing/tumbling39.xq 1970-01-01 00:00:00 +0000
888+++ test/rbkt/Queries/zorba/windowing/tumbling39.xq 2011-12-05 23:57:26 +0000
889@@ -0,0 +1,12 @@
890+for tumbling window $w in (1 to 10)
891+start $s when true()
892+only end $e when $e - $s eq 2
893+count $r
894+return
895+ <window num="{$r}">
896+ {
897+ for $i in $w
898+ order by $i descending
899+ return $i
900+ }
901+ </window>
902
903=== added file 'test/rbkt/Queries/zorba/windowing/tumbling40.xq'
904--- test/rbkt/Queries/zorba/windowing/tumbling40.xq 1970-01-01 00:00:00 +0000
905+++ test/rbkt/Queries/zorba/windowing/tumbling40.xq 2011-12-05 23:57:26 +0000
906@@ -0,0 +1,27 @@
907+let $s := <stocks>
908+ <closing> <symbol>ABC</symbol> <date>2008-01-01</date> <price>105</price> </closing>
909+ <closing> <symbol>DEF</symbol> <date>2008-01-01</date> <price>057</price> </closing>
910+ <closing> <symbol>ABC</symbol> <date>2008-01-02</date> <price>101</price> </closing>
911+ <closing> <symbol>DEF</symbol> <date>2008-01-02</date> <price>054</price> </closing>
912+ <closing> <symbol>ABC</symbol> <date>2008-01-03</date> <price>102</price> </closing>
913+ <closing> <symbol>DEF</symbol> <date>2008-01-03</date> <price>056</price> </closing>
914+ <closing> <symbol>ABC</symbol> <date>2008-01-04</date> <price>103</price> </closing>
915+ <closing> <symbol>DEF</symbol> <date>2008-01-04</date> <price>052</price> </closing>
916+ <closing> <symbol>ABC</symbol> <date>2008-01-05</date> <price>101</price> </closing>
917+ <closing> <symbol>DEF</symbol> <date>2008-01-05</date> <price>055</price> </closing>
918+ <closing> <symbol>ABC</symbol> <date>2008-01-06</date> <price>104</price> </closing>
919+ <closing> <symbol>DEF</symbol> <date>2008-01-06</date> <price>059</price> </closing>
920+</stocks>
921+for $closings in $s//closing
922+let $symbol := $closings/symbol
923+group by $symbol
924+for tumbling window $w in $closings
925+ start $first next $second when $first/price < $second/price
926+ end $last next $beyond when $last/price > $beyond/price
927+return
928+ <run-up symbol="{$symbol}">
929+ <start-date>{fn:data($first/date)}</start-date>
930+ <start-price>{fn:data($first/price)}</start-price>
931+ <end-date>{fn:data($last/date)}</end-date>
932+ <end-price>{fn:data($last/price)}</end-price>
933+ </run-up>
934
935=== added file 'test/rbkt/Queries/zorba/windowing/tumbling41.xq'
936--- test/rbkt/Queries/zorba/windowing/tumbling41.xq 1970-01-01 00:00:00 +0000
937+++ test/rbkt/Queries/zorba/windowing/tumbling41.xq 2011-12-05 23:57:26 +0000
938@@ -0,0 +1,9 @@
939+declare function local:window()
940+{
941+ for tumbling window $w in (1 to 10)
942+ start $s when true()
943+ end $e when $e - $s eq 3
944+ return <window>{$w}</window>
945+};
946+
947+local:window()
948
949=== added file 'test/rbkt/Queries/zorba/windowing/tumbling42.spec'
950--- test/rbkt/Queries/zorba/windowing/tumbling42.spec 1970-01-01 00:00:00 +0000
951+++ test/rbkt/Queries/zorba/windowing/tumbling42.spec 2011-12-05 23:57:26 +0000
952@@ -0,0 +1,1 @@
953+Error: http://www.w3.org/2005/xqt-errors:XPST0003
954
955=== added file 'test/rbkt/Queries/zorba/windowing/tumbling42.xq'
956--- test/rbkt/Queries/zorba/windowing/tumbling42.xq 1970-01-01 00:00:00 +0000
957+++ test/rbkt/Queries/zorba/windowing/tumbling42.xq 2011-12-05 23:57:26 +0000
958@@ -0,0 +1,4 @@
959+for tumbling window $w in (1 to 10)
960+start $s at $x as xs:integer when true()
961+end $e when $e - $s eq 3
962+return <window>{$w}</window>
963
964=== added file 'test/rbkt/Queries/zorba/windowing/tumbling43.spec'
965--- test/rbkt/Queries/zorba/windowing/tumbling43.spec 1970-01-01 00:00:00 +0000
966+++ test/rbkt/Queries/zorba/windowing/tumbling43.spec 2011-12-05 23:57:26 +0000
967@@ -0,0 +1,1 @@
968+Error: http://www.w3.org/2005/xqt-errors:XPST0003
969
970=== added file 'test/rbkt/Queries/zorba/windowing/tumbling43.xq'
971--- test/rbkt/Queries/zorba/windowing/tumbling43.xq 1970-01-01 00:00:00 +0000
972+++ test/rbkt/Queries/zorba/windowing/tumbling43.xq 2011-12-05 23:57:26 +0000
973@@ -0,0 +1,4 @@
974+for tumbling window $w in (1 to 10)
975+start $s next $sn as xs:integer when true()
976+end $e when $e - $s eq 3
977+return <window>{$w}</window>
978
979=== added file 'test/rbkt/Queries/zorba/windowing/tumbling44.spec'
980--- test/rbkt/Queries/zorba/windowing/tumbling44.spec 1970-01-01 00:00:00 +0000
981+++ test/rbkt/Queries/zorba/windowing/tumbling44.spec 2011-12-05 23:57:26 +0000
982@@ -0,0 +1,1 @@
983+Error: http://www.w3.org/2005/xqt-errors:XPTY0004
984
985=== added file 'test/rbkt/Queries/zorba/windowing/tumbling44.xq'
986--- test/rbkt/Queries/zorba/windowing/tumbling44.xq 1970-01-01 00:00:00 +0000
987+++ test/rbkt/Queries/zorba/windowing/tumbling44.xq 2011-12-05 23:57:26 +0000
988@@ -0,0 +1,4 @@
989+for tumbling window $w as xs:string in (1 to 10)
990+start $s when true()
991+end $e when $e - $s eq 3
992+return <window>{$w}</window>
993
994=== added file 'test/rbkt/Queries/zorba/windowing/tumbling45.xq'
995--- test/rbkt/Queries/zorba/windowing/tumbling45.xq 1970-01-01 00:00:00 +0000
996+++ test/rbkt/Queries/zorba/windowing/tumbling45.xq 2011-12-05 23:57:26 +0000
997@@ -0,0 +1,4 @@
998+for tumbling window $w in (1 to 10)
999+start $s when true()
1000+end $e when $e - $s
1001+return $w instance of xs:integer
1002
1003=== added file 'test/rbkt/Queries/zorba/windowing/tumbling46.xq'
1004--- test/rbkt/Queries/zorba/windowing/tumbling46.xq 1970-01-01 00:00:00 +0000
1005+++ test/rbkt/Queries/zorba/windowing/tumbling46.xq 2011-12-05 23:57:26 +0000
1006@@ -0,0 +1,17 @@
1007+declare function local:window($seq)
1008+{
1009+ for tumbling window $w in $seq
1010+ start $s when true()
1011+ end $e when $e - $s eq 3
1012+ return
1013+ <window>{
1014+ if ($w instance of xs:integer)
1015+ then
1016+ $w
1017+ else
1018+ $s
1019+ }</window>
1020+};
1021+
1022+local:window(1 to 10)
1023+
1024
1025=== added file 'test/rbkt/Queries/zorba/windowing/tumbling47.xq'
1026--- test/rbkt/Queries/zorba/windowing/tumbling47.xq 1970-01-01 00:00:00 +0000
1027+++ test/rbkt/Queries/zorba/windowing/tumbling47.xq 2011-12-05 23:57:26 +0000
1028@@ -0,0 +1,20 @@
1029+declare variable $local:foo as xs:integer* := 1 to 10;
1030+
1031+
1032+declare function local:window()
1033+{
1034+ for tumbling window $w in $local:foo
1035+ start $s when true()
1036+ end $e when $e - $s eq 3
1037+ return
1038+ <window>{
1039+ if ($w instance of xs:integer)
1040+ then
1041+ $w
1042+ else
1043+ $s
1044+ }</window>
1045+};
1046+
1047+local:window()
1048+
1049
1050=== added file 'test/rbkt/Queries/zorba/windowing/tumbling48.xq'
1051--- test/rbkt/Queries/zorba/windowing/tumbling48.xq 1970-01-01 00:00:00 +0000
1052+++ test/rbkt/Queries/zorba/windowing/tumbling48.xq 2011-12-05 23:57:26 +0000
1053@@ -0,0 +1,18 @@
1054+declare variable $local:foo as xs:integer* := 1 to 5;
1055+
1056+declare function local:window()
1057+{
1058+ for tumbling window $w1 in $local:foo
1059+ start $s when true()
1060+ end $e when $e - $s eq 3
1061+ for tumbling window $w2 in $w1
1062+ start $s when true()
1063+ end $e when true()
1064+ return
1065+ <window>{
1066+ fn:distinct-values($w1[.=$w2])
1067+ }</window>
1068+};
1069+
1070+local:window()
1071+
1072
1073=== added file 'test/rbkt/Queries/zorba/windowing/tumbling49.xq'
1074--- test/rbkt/Queries/zorba/windowing/tumbling49.xq 1970-01-01 00:00:00 +0000
1075+++ test/rbkt/Queries/zorba/windowing/tumbling49.xq 2011-12-05 23:57:26 +0000
1076@@ -0,0 +1,12 @@
1077+declare variable $local:foo as xs:integer* := 1 to 10;
1078+
1079+declare function local:window()
1080+{
1081+ for tumbling window $w in $local:foo
1082+ start $s when false()
1083+ end $e when false()
1084+ return
1085+ <window>{$w}</window>
1086+};
1087+
1088+local:window()
1089
1090=== added file 'test/rbkt/Queries/zorba/windowing/windowing13.spec'
1091--- test/rbkt/Queries/zorba/windowing/windowing13.spec 1970-01-01 00:00:00 +0000
1092+++ test/rbkt/Queries/zorba/windowing/windowing13.spec 2011-12-05 23:57:26 +0000
1093@@ -0,0 +1,1 @@
1094+Error: http://www.w3.org/2005/xqt-errors:XPST0003
1095
1096=== added file 'test/rbkt/Queries/zorba/windowing/windowing13.xq'
1097--- test/rbkt/Queries/zorba/windowing/windowing13.xq 1970-01-01 00:00:00 +0000
1098+++ test/rbkt/Queries/zorba/windowing/windowing13.xq 2011-12-05 23:57:26 +0000
1099@@ -0,0 +1,4 @@
1100+for window $w in (1 to 10)
1101+start $s when true()
1102+end $e when false()
1103+return <window>{$w}</window>

Subscribers

People subscribed via source and target branches