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: 1109 lines (+523/-0)
116 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.spec (+1/-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+84538@code.launchpad.net

This proposal supersedes a proposal from 2011-12-02.

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

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) : Posted in a previous version of this proposal
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote : Posted in a previous version of this proposal
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote : Posted in a previous version of this proposal

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 : Posted in a previous version of this proposal

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

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 :

The attempt to merge lp:~zorba-coders/zorba/windowing-tests into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:272 (message):
  Validation queue job windowing-tests-2011-12-06T00-00-32.964Z is finished.
  The final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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-06 00:30:31 +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.spec'
369--- test/rbkt/Queries/zorba/windowing/sliding08.spec 1970-01-01 00:00:00 +0000
370+++ test/rbkt/Queries/zorba/windowing/sliding08.spec 2011-12-06 00:30:31 +0000
371@@ -0,0 +1,1 @@
372+Error: http://www.w3.org/2005/xqt-errors:XPST0008
373
374=== added file 'test/rbkt/Queries/zorba/windowing/sliding08.xq'
375--- test/rbkt/Queries/zorba/windowing/sliding08.xq 1970-01-01 00:00:00 +0000
376+++ test/rbkt/Queries/zorba/windowing/sliding08.xq 2011-12-06 00:30:31 +0000
377@@ -0,0 +1,4 @@
378+for sliding window $w in (1 to 10)
379+start $s when true()
380+end $e when $e - $w eq 2
381+return <window>{$w}</window>
382
383=== added file 'test/rbkt/Queries/zorba/windowing/sliding09.xq'
384--- test/rbkt/Queries/zorba/windowing/sliding09.xq 1970-01-01 00:00:00 +0000
385+++ test/rbkt/Queries/zorba/windowing/sliding09.xq 2011-12-06 00:30:31 +0000
386@@ -0,0 +1,5 @@
387+for sliding window $w in (1 to 10)
388+start $s at $x previous $sp next $sn when true()
389+end $e at $y previous $ep next $en when false()
390+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)
391+return true()
392
393=== added file 'test/rbkt/Queries/zorba/windowing/sliding10.xq'
394--- test/rbkt/Queries/zorba/windowing/sliding10.xq 1970-01-01 00:00:00 +0000
395+++ test/rbkt/Queries/zorba/windowing/sliding10.xq 2011-12-06 00:30:31 +0000
396@@ -0,0 +1,18 @@
397+for $x1 in 11
398+for $x2 in 12
399+for $x3 in 13
400+for $x4 in 14
401+for $x5 in 15
402+for $x6 in 16
403+for $x7 in 17
404+for $x8 in 18
405+for $x9 in 19
406+for sliding window $x1 in (1 to 10)
407+start $x2 at $x3 previous $x4 next $x5 when true()
408+end $x6 at $x7 previous $x8 next $x9 when false()
409+return
410+ string-join(
411+ for $i in ($x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9)
412+ return string($i), " "
413+ )
414+
415
416=== added file 'test/rbkt/Queries/zorba/windowing/sliding11.xq'
417--- test/rbkt/Queries/zorba/windowing/sliding11.xq 1970-01-01 00:00:00 +0000
418+++ test/rbkt/Queries/zorba/windowing/sliding11.xq 2011-12-06 00:30:31 +0000
419@@ -0,0 +1,5 @@
420+for sliding window $w in (1 to 10)
421+start $s when true()
422+end $e when $e - $s eq 2
423+count $r
424+return <window num="{$r}">{$w}</window>
425
426=== added file 'test/rbkt/Queries/zorba/windowing/sliding12.xq'
427--- test/rbkt/Queries/zorba/windowing/sliding12.xq 1970-01-01 00:00:00 +0000
428+++ test/rbkt/Queries/zorba/windowing/sliding12.xq 2011-12-06 00:30:31 +0000
429@@ -0,0 +1,7 @@
430+for $i in 1 to 3
431+count $r
432+for tumbling window $w in (1 to 10)
433+start $s when true()
434+end $e when $e - $s eq 2
435+where $w = $r + 1
436+return <window num="{$r}">{$w}</window>
437
438=== added file 'test/rbkt/Queries/zorba/windowing/sliding13.xq'
439--- test/rbkt/Queries/zorba/windowing/sliding13.xq 1970-01-01 00:00:00 +0000
440+++ test/rbkt/Queries/zorba/windowing/sliding13.xq 2011-12-06 00:30:31 +0000
441@@ -0,0 +1,5 @@
442+for sliding window $w in (1 to 10)
443+start $s when true()
444+only end $e when $e - $s eq 2
445+order by $w[2] descending
446+return <window>{$w}</window>
447
448=== added file 'test/rbkt/Queries/zorba/windowing/sliding14.xq'
449--- test/rbkt/Queries/zorba/windowing/sliding14.xq 1970-01-01 00:00:00 +0000
450+++ test/rbkt/Queries/zorba/windowing/sliding14.xq 2011-12-06 00:30:31 +0000
451@@ -0,0 +1,12 @@
452+for tumbling window $w in (1 to 10)
453+start $s when true()
454+only end $e when $e - $s eq 2
455+count $r
456+return
457+ <window num="{$r}">
458+ {
459+ for $i in $w
460+ order by $i descending
461+ return $i
462+ }
463+ </window>
464
465=== added file 'test/rbkt/Queries/zorba/windowing/tumbling01.xq'
466--- test/rbkt/Queries/zorba/windowing/tumbling01.xq 1970-01-01 00:00:00 +0000
467+++ test/rbkt/Queries/zorba/windowing/tumbling01.xq 2011-12-06 00:30:31 +0000
468@@ -0,0 +1,4 @@
469+for tumbling window $w in (1 to 10)
470+start $s when true()
471+end $e when true()
472+return <window>{$w}</window>
473
474=== added file 'test/rbkt/Queries/zorba/windowing/tumbling02.xq'
475--- test/rbkt/Queries/zorba/windowing/tumbling02.xq 1970-01-01 00:00:00 +0000
476+++ test/rbkt/Queries/zorba/windowing/tumbling02.xq 2011-12-06 00:30:31 +0000
477@@ -0,0 +1,5 @@
478+for tumbling window $w in (1 to 10)
479+start $s when true()
480+end $e when $e - $s eq 2
481+return <window>{$w}</window>
482+
483
484=== added file 'test/rbkt/Queries/zorba/windowing/tumbling04.xq'
485--- test/rbkt/Queries/zorba/windowing/tumbling04.xq 1970-01-01 00:00:00 +0000
486+++ test/rbkt/Queries/zorba/windowing/tumbling04.xq 2011-12-06 00:30:31 +0000
487@@ -0,0 +1,4 @@
488+for tumbling window $w in (1 to 10)
489+start $s at $x when true()
490+end $e at $y when $y - $x eq 2
491+return <window>{$w}</window>
492
493=== added file 'test/rbkt/Queries/zorba/windowing/tumbling05.xq'
494--- test/rbkt/Queries/zorba/windowing/tumbling05.xq 1970-01-01 00:00:00 +0000
495+++ test/rbkt/Queries/zorba/windowing/tumbling05.xq 2011-12-06 00:30:31 +0000
496@@ -0,0 +1,5 @@
497+for tumbling window $w in (1 to 10)
498+start $s at $x when true()
499+only end $e at $y when $y - $x eq 2
500+return <window>{$w}</window>
501+
502
503=== added file 'test/rbkt/Queries/zorba/windowing/tumbling06.xq'
504--- test/rbkt/Queries/zorba/windowing/tumbling06.xq 1970-01-01 00:00:00 +0000
505+++ test/rbkt/Queries/zorba/windowing/tumbling06.xq 2011-12-06 00:30:31 +0000
506@@ -0,0 +1,4 @@
507+for tumbling window $w in (1 to 10)
508+start $s when true()
509+only end $e when false()
510+return <window>{$w}</window>
511
512=== added file 'test/rbkt/Queries/zorba/windowing/tumbling07.xq'
513--- test/rbkt/Queries/zorba/windowing/tumbling07.xq 1970-01-01 00:00:00 +0000
514+++ test/rbkt/Queries/zorba/windowing/tumbling07.xq 2011-12-06 00:30:31 +0000
515@@ -0,0 +1,4 @@
516+for tumbling window $w in (1 to 10)
517+start $s when true()
518+end $e when false()
519+return <window>{$w}</window>
520
521=== added file 'test/rbkt/Queries/zorba/windowing/tumbling08.xq'
522--- test/rbkt/Queries/zorba/windowing/tumbling08.xq 1970-01-01 00:00:00 +0000
523+++ test/rbkt/Queries/zorba/windowing/tumbling08.xq 2011-12-06 00:30:31 +0000
524@@ -0,0 +1,6 @@
525+declare namespace window = "foo:bar";
526+
527+for tumbling window $window:w in (1 to 10)
528+start $s when true()
529+end $e when false()
530+return <window>{$window:w}</window>
531
532=== added file 'test/rbkt/Queries/zorba/windowing/tumbling09.xq'
533--- test/rbkt/Queries/zorba/windowing/tumbling09.xq 1970-01-01 00:00:00 +0000
534+++ test/rbkt/Queries/zorba/windowing/tumbling09.xq 2011-12-06 00:30:31 +0000
535@@ -0,0 +1,6 @@
536+declare namespace window = "foo:bar";
537+
538+for tumbling window $"foo:bar":w in (1 to 10)
539+start $s when true()
540+end $e when false()
541+return <window>{$window:w}</window>
542
543=== added file 'test/rbkt/Queries/zorba/windowing/tumbling10.xq'
544--- test/rbkt/Queries/zorba/windowing/tumbling10.xq 1970-01-01 00:00:00 +0000
545+++ test/rbkt/Queries/zorba/windowing/tumbling10.xq 2011-12-06 00:30:31 +0000
546@@ -0,0 +1,10 @@
547+declare namespace w = "foo:bar";
548+
549+for tumbling window $"foo:bar":w in (1 to 10)
550+start $"foo:bar":s at $"foo:bar":x previous $"foo:bar":sp next $"foo:bar":sn when true()
551+end $"foo:bar":e at $"foo:bar":y previous $"foo:bar":ep next $"foo:bar":en when false()
552+return <window>{
553+ string-join (
554+ for $w:w in ($w:w, $w:s, $w:x, $w:sp, $w:sn, $w:e, $w:y, $w:ep, $w:en)
555+ return string($w:w), " "
556+ )}</window>
557
558=== added file 'test/rbkt/Queries/zorba/windowing/tumbling11.spec'
559--- test/rbkt/Queries/zorba/windowing/tumbling11.spec 1970-01-01 00:00:00 +0000
560+++ test/rbkt/Queries/zorba/windowing/tumbling11.spec 2011-12-06 00:30:31 +0000
561@@ -0,0 +1,1 @@
562+Error: http://www.w3.org/2005/xqt-errors:XPST0008
563
564=== added file 'test/rbkt/Queries/zorba/windowing/tumbling11.xq'
565--- test/rbkt/Queries/zorba/windowing/tumbling11.xq 1970-01-01 00:00:00 +0000
566+++ test/rbkt/Queries/zorba/windowing/tumbling11.xq 2011-12-06 00:30:31 +0000
567@@ -0,0 +1,4 @@
568+for tumbling window $w in (1 to 10)
569+start $s when true()
570+end $e when $e - $w eq 2
571+return <window>{$w}</window>
572
573=== added file 'test/rbkt/Queries/zorba/windowing/tumbling14.spec'
574--- test/rbkt/Queries/zorba/windowing/tumbling14.spec 1970-01-01 00:00:00 +0000
575+++ test/rbkt/Queries/zorba/windowing/tumbling14.spec 2011-12-06 00:30:31 +0000
576@@ -0,0 +1,1 @@
577+Error: http://www.w3.org/2005/xqt-errors:XQST0103
578
579=== added file 'test/rbkt/Queries/zorba/windowing/tumbling14.xq'
580--- test/rbkt/Queries/zorba/windowing/tumbling14.xq 1970-01-01 00:00:00 +0000
581+++ test/rbkt/Queries/zorba/windowing/tumbling14.xq 2011-12-06 00:30:31 +0000
582@@ -0,0 +1,4 @@
583+for tumbling window $w in (1 to 10)
584+start $w when true()
585+end $e when false()
586+return <window>{$w}</window>
587
588=== added file 'test/rbkt/Queries/zorba/windowing/tumbling15.spec'
589--- test/rbkt/Queries/zorba/windowing/tumbling15.spec 1970-01-01 00:00:00 +0000
590+++ test/rbkt/Queries/zorba/windowing/tumbling15.spec 2011-12-06 00:30:31 +0000
591@@ -0,0 +1,2 @@
592+Error: http://www.w3.org/2005/xqt-errors:XQST0103
593+
594
595=== added file 'test/rbkt/Queries/zorba/windowing/tumbling15.xq'
596--- test/rbkt/Queries/zorba/windowing/tumbling15.xq 1970-01-01 00:00:00 +0000
597+++ test/rbkt/Queries/zorba/windowing/tumbling15.xq 2011-12-06 00:30:31 +0000
598@@ -0,0 +1,4 @@
599+for tumbling window $w in (1 to 10)
600+start $s when true()
601+end $w when false()
602+return <window>{$w}</window>
603
604=== added file 'test/rbkt/Queries/zorba/windowing/tumbling16.spec'
605--- test/rbkt/Queries/zorba/windowing/tumbling16.spec 1970-01-01 00:00:00 +0000
606+++ test/rbkt/Queries/zorba/windowing/tumbling16.spec 2011-12-06 00:30:31 +0000
607@@ -0,0 +1,1 @@
608+Error: http://www.w3.org/2005/xqt-errors:XQST0103
609
610=== added file 'test/rbkt/Queries/zorba/windowing/tumbling16.xq'
611--- test/rbkt/Queries/zorba/windowing/tumbling16.xq 1970-01-01 00:00:00 +0000
612+++ test/rbkt/Queries/zorba/windowing/tumbling16.xq 2011-12-06 00:30:31 +0000
613@@ -0,0 +1,4 @@
614+for tumbling window $w in (1 to 10)
615+start $s at $w when true()
616+end $e when false()
617+return <window>{$w}</window>
618
619=== added file 'test/rbkt/Queries/zorba/windowing/tumbling17.spec'
620--- test/rbkt/Queries/zorba/windowing/tumbling17.spec 1970-01-01 00:00:00 +0000
621+++ test/rbkt/Queries/zorba/windowing/tumbling17.spec 2011-12-06 00:30:31 +0000
622@@ -0,0 +1,1 @@
623+Error: http://www.w3.org/2005/xqt-errors:XQST0103
624
625=== added file 'test/rbkt/Queries/zorba/windowing/tumbling17.xq'
626--- test/rbkt/Queries/zorba/windowing/tumbling17.xq 1970-01-01 00:00:00 +0000
627+++ test/rbkt/Queries/zorba/windowing/tumbling17.xq 2011-12-06 00:30:31 +0000
628@@ -0,0 +1,4 @@
629+for tumbling window $w in (1 to 10)
630+start $s when true()
631+end $e at $w when false()
632+return <window>{$w}</window>
633
634=== added file 'test/rbkt/Queries/zorba/windowing/tumbling18.spec'
635--- test/rbkt/Queries/zorba/windowing/tumbling18.spec 1970-01-01 00:00:00 +0000
636+++ test/rbkt/Queries/zorba/windowing/tumbling18.spec 2011-12-06 00:30:31 +0000
637@@ -0,0 +1,1 @@
638+Error: http://www.w3.org/2005/xqt-errors:XQST0103
639
640=== added file 'test/rbkt/Queries/zorba/windowing/tumbling18.xq'
641--- test/rbkt/Queries/zorba/windowing/tumbling18.xq 1970-01-01 00:00:00 +0000
642+++ test/rbkt/Queries/zorba/windowing/tumbling18.xq 2011-12-06 00:30:31 +0000
643@@ -0,0 +1,4 @@
644+for tumbling window $w in (1 to 10)
645+start $s previous $w when true()
646+end $e when false()
647+return <window>{$w}</window>
648
649=== added file 'test/rbkt/Queries/zorba/windowing/tumbling19.spec'
650--- test/rbkt/Queries/zorba/windowing/tumbling19.spec 1970-01-01 00:00:00 +0000
651+++ test/rbkt/Queries/zorba/windowing/tumbling19.spec 2011-12-06 00:30:31 +0000
652@@ -0,0 +1,1 @@
653+Error: http://www.w3.org/2005/xqt-errors:XQST0103
654
655=== added file 'test/rbkt/Queries/zorba/windowing/tumbling19.xq'
656--- test/rbkt/Queries/zorba/windowing/tumbling19.xq 1970-01-01 00:00:00 +0000
657+++ test/rbkt/Queries/zorba/windowing/tumbling19.xq 2011-12-06 00:30:31 +0000
658@@ -0,0 +1,4 @@
659+for tumbling window $w in (1 to 10)
660+start $s next $w when true()
661+end $e when false()
662+return <window>{$w}</window>
663
664=== added file 'test/rbkt/Queries/zorba/windowing/tumbling20.spec'
665--- test/rbkt/Queries/zorba/windowing/tumbling20.spec 1970-01-01 00:00:00 +0000
666+++ test/rbkt/Queries/zorba/windowing/tumbling20.spec 2011-12-06 00:30:31 +0000
667@@ -0,0 +1,1 @@
668+Error: http://www.w3.org/2005/xqt-errors:XQST0103
669
670=== added file 'test/rbkt/Queries/zorba/windowing/tumbling20.xq'
671--- test/rbkt/Queries/zorba/windowing/tumbling20.xq 1970-01-01 00:00:00 +0000
672+++ test/rbkt/Queries/zorba/windowing/tumbling20.xq 2011-12-06 00:30:31 +0000
673@@ -0,0 +1,4 @@
674+for tumbling window $w in (1 to 10)
675+start $s when true()
676+end $e previous $w when false()
677+return <window>{$w}</window>
678
679=== added file 'test/rbkt/Queries/zorba/windowing/tumbling21.spec'
680--- test/rbkt/Queries/zorba/windowing/tumbling21.spec 1970-01-01 00:00:00 +0000
681+++ test/rbkt/Queries/zorba/windowing/tumbling21.spec 2011-12-06 00:30:31 +0000
682@@ -0,0 +1,1 @@
683+Error: http://www.w3.org/2005/xqt-errors:XQST0103
684
685=== added file 'test/rbkt/Queries/zorba/windowing/tumbling21.xq'
686--- test/rbkt/Queries/zorba/windowing/tumbling21.xq 1970-01-01 00:00:00 +0000
687+++ test/rbkt/Queries/zorba/windowing/tumbling21.xq 2011-12-06 00:30:31 +0000
688@@ -0,0 +1,4 @@
689+for tumbling window $w in (1 to 10)
690+start $s when true()
691+end $e next $w when false()
692+return <window>{$w}</window>
693
694=== added file 'test/rbkt/Queries/zorba/windowing/tumbling22.spec'
695--- test/rbkt/Queries/zorba/windowing/tumbling22.spec 1970-01-01 00:00:00 +0000
696+++ test/rbkt/Queries/zorba/windowing/tumbling22.spec 2011-12-06 00:30:31 +0000
697@@ -0,0 +1,1 @@
698+Error: http://www.w3.org/2005/xqt-errors:XQST0103
699
700=== added file 'test/rbkt/Queries/zorba/windowing/tumbling22.xq'
701--- test/rbkt/Queries/zorba/windowing/tumbling22.xq 1970-01-01 00:00:00 +0000
702+++ test/rbkt/Queries/zorba/windowing/tumbling22.xq 2011-12-06 00:30:31 +0000
703@@ -0,0 +1,4 @@
704+for tumbling window $w in (1 to 10)
705+start $s when true()
706+end $s when false()
707+return <window>{$w}</window>
708
709=== added file 'test/rbkt/Queries/zorba/windowing/tumbling24.xq'
710--- test/rbkt/Queries/zorba/windowing/tumbling24.xq 1970-01-01 00:00:00 +0000
711+++ test/rbkt/Queries/zorba/windowing/tumbling24.xq 2011-12-06 00:30:31 +0000
712@@ -0,0 +1,6 @@
713+(: check all variables are in scope in the following clause :)
714+for tumbling window $w in (1 to 10)
715+start $s at $x previous $sp next $sn when true()
716+end $e at $y previous $ep next $en when false()
717+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)
718+return true()
719
720=== added file 'test/rbkt/Queries/zorba/windowing/tumbling25.xq'
721--- test/rbkt/Queries/zorba/windowing/tumbling25.xq 1970-01-01 00:00:00 +0000
722+++ test/rbkt/Queries/zorba/windowing/tumbling25.xq 2011-12-06 00:30:31 +0000
723@@ -0,0 +1,5 @@
724+for tumbling window $w in ()
725+start $s at $x previous $sp next $sn when true()
726+end $e at $y previous $ep next $en when false()
727+return ($w, $s, $x, $sp, $sn, $e, $y, $ep, $en)
728+
729
730=== added file 'test/rbkt/Queries/zorba/windowing/tumbling26.xq'
731--- test/rbkt/Queries/zorba/windowing/tumbling26.xq 1970-01-01 00:00:00 +0000
732+++ test/rbkt/Queries/zorba/windowing/tumbling26.xq 2011-12-06 00:30:31 +0000
733@@ -0,0 +1,3 @@
734+for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
735+start $first when $first mod 3 = 0
736+return <window>{ $w }</window>
737
738=== added file 'test/rbkt/Queries/zorba/windowing/tumbling27.xq'
739--- test/rbkt/Queries/zorba/windowing/tumbling27.xq 1970-01-01 00:00:00 +0000
740+++ test/rbkt/Queries/zorba/windowing/tumbling27.xq 2011-12-06 00:30:31 +0000
741@@ -0,0 +1,4 @@
742+for $w in (1 to 2)
743+for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
744+start $first when $first mod 3 = 0
745+return <window>{ $w }</window>
746
747=== added file 'test/rbkt/Queries/zorba/windowing/tumbling28.xq'
748--- test/rbkt/Queries/zorba/windowing/tumbling28.xq 1970-01-01 00:00:00 +0000
749+++ test/rbkt/Queries/zorba/windowing/tumbling28.xq 2011-12-06 00:30:31 +0000
750@@ -0,0 +1,4 @@
751+for $w at $y in (1 to 2)
752+for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
753+start $first when $first mod 3 = 0
754+return <window>{ $y }</window>
755
756=== added file 'test/rbkt/Queries/zorba/windowing/tumbling29.xq'
757--- test/rbkt/Queries/zorba/windowing/tumbling29.xq 1970-01-01 00:00:00 +0000
758+++ test/rbkt/Queries/zorba/windowing/tumbling29.xq 2011-12-06 00:30:31 +0000
759@@ -0,0 +1,17 @@
760+for $x1 in 11
761+for $x2 in 12
762+for $x3 in 13
763+for $x4 in 14
764+for $x5 in 15
765+for $x6 in 16
766+for $x7 in 17
767+for $x8 in 18
768+for $x9 in 19
769+for tumbling window $x1 in (1 to 10)
770+start $x2 at $x3 previous $x4 next $x5 when true()
771+end $x6 at $x7 previous $x8 next $x9 when false()
772+return
773+ string-join(
774+ for $i in ($x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9)
775+ return string($i), " "
776+ )
777
778=== added file 'test/rbkt/Queries/zorba/windowing/tumbling31.spec'
779--- test/rbkt/Queries/zorba/windowing/tumbling31.spec 1970-01-01 00:00:00 +0000
780+++ test/rbkt/Queries/zorba/windowing/tumbling31.spec 2011-12-06 00:30:31 +0000
781@@ -0,0 +1,1 @@
782+Error: http://www.w3.org/2005/xqt-errors:XPST0003
783
784=== added file 'test/rbkt/Queries/zorba/windowing/tumbling31.xq'
785--- test/rbkt/Queries/zorba/windowing/tumbling31.xq 1970-01-01 00:00:00 +0000
786+++ test/rbkt/Queries/zorba/windowing/tumbling31.xq 2011-12-06 00:30:31 +0000
787@@ -0,0 +1,3 @@
788+for tumbling window $w in (1 to 10)
789+start $s next $sn previous $pn when true()
790+return <window>{$w}</window>
791
792=== added file 'test/rbkt/Queries/zorba/windowing/tumbling32.xq'
793--- test/rbkt/Queries/zorba/windowing/tumbling32.xq 1970-01-01 00:00:00 +0000
794+++ test/rbkt/Queries/zorba/windowing/tumbling32.xq 2011-12-06 00:30:31 +0000
795@@ -0,0 +1,19 @@
796+let $stock :=
797+ <stock>
798+ <closing> <date>2008-01-01</date> <price>105</price> </closing>
799+ <closing> <date>2008-01-02</date> <price>101</price> </closing>
800+ <closing> <date>2008-01-03</date> <price>102</price> </closing>
801+ <closing> <date>2008-01-04</date> <price>103</price> </closing>
802+ <closing> <date>2008-01-05</date> <price>102</price> </closing>
803+ <closing> <date>2008-01-06</date> <price>104</price> </closing>
804+ </stock>
805+for tumbling window $w in $stock//closing
806+ start $first next $second when $first/price < $second/price
807+ end $last next $beyond when $last/price > $beyond/price
808+return
809+ <run-up>
810+ <start-date>{fn:data($first/date)}</start-date>
811+ <start-price>{fn:data($first/price)}</start-price>
812+ <end-date>{fn:data($last/date)}</end-date>
813+ <end-price>{fn:data($last/price)}</end-price>
814+ </run-up>
815
816=== added file 'test/rbkt/Queries/zorba/windowing/tumbling33.xq'
817--- test/rbkt/Queries/zorba/windowing/tumbling33.xq 1970-01-01 00:00:00 +0000
818+++ test/rbkt/Queries/zorba/windowing/tumbling33.xq 2011-12-06 00:30:31 +0000
819@@ -0,0 +1,5 @@
820+for tumbling window $w in (1 to 10)
821+start $s when true()
822+end $e when $e - $s eq 2
823+count $r
824+return <window num="{$r}">{$w}</window>
825
826=== added file 'test/rbkt/Queries/zorba/windowing/tumbling34.xq'
827--- test/rbkt/Queries/zorba/windowing/tumbling34.xq 1970-01-01 00:00:00 +0000
828+++ test/rbkt/Queries/zorba/windowing/tumbling34.xq 2011-12-06 00:30:31 +0000
829@@ -0,0 +1,6 @@
830+for tumbling window $w in (1 to 10)
831+start $s when true()
832+end $e when $e - $s eq 2
833+count $r
834+where $r le 2
835+return <window num="{$r}">{$w}</window>
836
837=== added file 'test/rbkt/Queries/zorba/windowing/tumbling35.xq'
838--- test/rbkt/Queries/zorba/windowing/tumbling35.xq 1970-01-01 00:00:00 +0000
839+++ test/rbkt/Queries/zorba/windowing/tumbling35.xq 2011-12-06 00:30:31 +0000
840@@ -0,0 +1,8 @@
841+for $i in 1 to 3
842+count $r
843+for tumbling window $w in (1 to 10)
844+start $s when true()
845+end $e when $e - $s eq 2
846+where $w = $r + 1
847+return <window num="{$r}">{$w}</window>
848+
849
850=== added file 'test/rbkt/Queries/zorba/windowing/tumbling36.xq'
851--- test/rbkt/Queries/zorba/windowing/tumbling36.xq 1970-01-01 00:00:00 +0000
852+++ test/rbkt/Queries/zorba/windowing/tumbling36.xq 2011-12-06 00:30:31 +0000
853@@ -0,0 +1,5 @@
854+for tumbling window $w in (1 to 10)
855+start $s when true()
856+only end $e when $e - $s eq 2
857+order by $w[2] descending
858+return <window>{$w}</window>
859
860=== added file 'test/rbkt/Queries/zorba/windowing/tumbling37.spec'
861--- test/rbkt/Queries/zorba/windowing/tumbling37.spec 1970-01-01 00:00:00 +0000
862+++ test/rbkt/Queries/zorba/windowing/tumbling37.spec 2011-12-06 00:30:31 +0000
863@@ -0,0 +1,1 @@
864+Error: http://www.w3.org/2005/xqt-errors:XPST0008
865
866=== added file 'test/rbkt/Queries/zorba/windowing/tumbling37.xq'
867--- test/rbkt/Queries/zorba/windowing/tumbling37.xq 1970-01-01 00:00:00 +0000
868+++ test/rbkt/Queries/zorba/windowing/tumbling37.xq 2011-12-06 00:30:31 +0000
869@@ -0,0 +1,8 @@
870+for tumbling window $w1 in
871+ for tumbling window $w2 in (1 to 10)
872+ start $s when true()
873+ only end $e when $e - $s eq 2
874+ return $w2
875+start $s when true()
876+end $e when $e - $s eq 2
877+return <window>{$w2}</window>
878
879=== added file 'test/rbkt/Queries/zorba/windowing/tumbling38.xq'
880--- test/rbkt/Queries/zorba/windowing/tumbling38.xq 1970-01-01 00:00:00 +0000
881+++ test/rbkt/Queries/zorba/windowing/tumbling38.xq 2011-12-06 00:30:31 +0000
882@@ -0,0 +1,8 @@
883+for tumbling window $w1 in
884+ for tumbling window $w2 in (1 to 10)
885+ start $s when true()
886+ only end $e when $e - $s eq 2
887+ return $w2
888+start $s when true()
889+end $e when $e - $s eq 2
890+return <window>{$w1}</window>
891
892=== added file 'test/rbkt/Queries/zorba/windowing/tumbling39.xq'
893--- test/rbkt/Queries/zorba/windowing/tumbling39.xq 1970-01-01 00:00:00 +0000
894+++ test/rbkt/Queries/zorba/windowing/tumbling39.xq 2011-12-06 00:30:31 +0000
895@@ -0,0 +1,12 @@
896+for tumbling window $w in (1 to 10)
897+start $s when true()
898+only end $e when $e - $s eq 2
899+count $r
900+return
901+ <window num="{$r}">
902+ {
903+ for $i in $w
904+ order by $i descending
905+ return $i
906+ }
907+ </window>
908
909=== added file 'test/rbkt/Queries/zorba/windowing/tumbling40.xq'
910--- test/rbkt/Queries/zorba/windowing/tumbling40.xq 1970-01-01 00:00:00 +0000
911+++ test/rbkt/Queries/zorba/windowing/tumbling40.xq 2011-12-06 00:30:31 +0000
912@@ -0,0 +1,27 @@
913+let $s := <stocks>
914+ <closing> <symbol>ABC</symbol> <date>2008-01-01</date> <price>105</price> </closing>
915+ <closing> <symbol>DEF</symbol> <date>2008-01-01</date> <price>057</price> </closing>
916+ <closing> <symbol>ABC</symbol> <date>2008-01-02</date> <price>101</price> </closing>
917+ <closing> <symbol>DEF</symbol> <date>2008-01-02</date> <price>054</price> </closing>
918+ <closing> <symbol>ABC</symbol> <date>2008-01-03</date> <price>102</price> </closing>
919+ <closing> <symbol>DEF</symbol> <date>2008-01-03</date> <price>056</price> </closing>
920+ <closing> <symbol>ABC</symbol> <date>2008-01-04</date> <price>103</price> </closing>
921+ <closing> <symbol>DEF</symbol> <date>2008-01-04</date> <price>052</price> </closing>
922+ <closing> <symbol>ABC</symbol> <date>2008-01-05</date> <price>101</price> </closing>
923+ <closing> <symbol>DEF</symbol> <date>2008-01-05</date> <price>055</price> </closing>
924+ <closing> <symbol>ABC</symbol> <date>2008-01-06</date> <price>104</price> </closing>
925+ <closing> <symbol>DEF</symbol> <date>2008-01-06</date> <price>059</price> </closing>
926+</stocks>
927+for $closings in $s//closing
928+let $symbol := $closings/symbol
929+group by $symbol
930+for tumbling window $w in $closings
931+ start $first next $second when $first/price < $second/price
932+ end $last next $beyond when $last/price > $beyond/price
933+return
934+ <run-up symbol="{$symbol}">
935+ <start-date>{fn:data($first/date)}</start-date>
936+ <start-price>{fn:data($first/price)}</start-price>
937+ <end-date>{fn:data($last/date)}</end-date>
938+ <end-price>{fn:data($last/price)}</end-price>
939+ </run-up>
940
941=== added file 'test/rbkt/Queries/zorba/windowing/tumbling41.xq'
942--- test/rbkt/Queries/zorba/windowing/tumbling41.xq 1970-01-01 00:00:00 +0000
943+++ test/rbkt/Queries/zorba/windowing/tumbling41.xq 2011-12-06 00:30:31 +0000
944@@ -0,0 +1,9 @@
945+declare function local:window()
946+{
947+ for tumbling window $w in (1 to 10)
948+ start $s when true()
949+ end $e when $e - $s eq 3
950+ return <window>{$w}</window>
951+};
952+
953+local:window()
954
955=== added file 'test/rbkt/Queries/zorba/windowing/tumbling42.spec'
956--- test/rbkt/Queries/zorba/windowing/tumbling42.spec 1970-01-01 00:00:00 +0000
957+++ test/rbkt/Queries/zorba/windowing/tumbling42.spec 2011-12-06 00:30:31 +0000
958@@ -0,0 +1,1 @@
959+Error: http://www.w3.org/2005/xqt-errors:XPST0003
960
961=== added file 'test/rbkt/Queries/zorba/windowing/tumbling42.xq'
962--- test/rbkt/Queries/zorba/windowing/tumbling42.xq 1970-01-01 00:00:00 +0000
963+++ test/rbkt/Queries/zorba/windowing/tumbling42.xq 2011-12-06 00:30:31 +0000
964@@ -0,0 +1,4 @@
965+for tumbling window $w in (1 to 10)
966+start $s at $x as xs:integer when true()
967+end $e when $e - $s eq 3
968+return <window>{$w}</window>
969
970=== added file 'test/rbkt/Queries/zorba/windowing/tumbling43.spec'
971--- test/rbkt/Queries/zorba/windowing/tumbling43.spec 1970-01-01 00:00:00 +0000
972+++ test/rbkt/Queries/zorba/windowing/tumbling43.spec 2011-12-06 00:30:31 +0000
973@@ -0,0 +1,1 @@
974+Error: http://www.w3.org/2005/xqt-errors:XPST0003
975
976=== added file 'test/rbkt/Queries/zorba/windowing/tumbling43.xq'
977--- test/rbkt/Queries/zorba/windowing/tumbling43.xq 1970-01-01 00:00:00 +0000
978+++ test/rbkt/Queries/zorba/windowing/tumbling43.xq 2011-12-06 00:30:31 +0000
979@@ -0,0 +1,4 @@
980+for tumbling window $w in (1 to 10)
981+start $s next $sn as xs:integer when true()
982+end $e when $e - $s eq 3
983+return <window>{$w}</window>
984
985=== added file 'test/rbkt/Queries/zorba/windowing/tumbling44.spec'
986--- test/rbkt/Queries/zorba/windowing/tumbling44.spec 1970-01-01 00:00:00 +0000
987+++ test/rbkt/Queries/zorba/windowing/tumbling44.spec 2011-12-06 00:30:31 +0000
988@@ -0,0 +1,1 @@
989+Error: http://www.w3.org/2005/xqt-errors:XPTY0004
990
991=== added file 'test/rbkt/Queries/zorba/windowing/tumbling44.xq'
992--- test/rbkt/Queries/zorba/windowing/tumbling44.xq 1970-01-01 00:00:00 +0000
993+++ test/rbkt/Queries/zorba/windowing/tumbling44.xq 2011-12-06 00:30:31 +0000
994@@ -0,0 +1,4 @@
995+for tumbling window $w as xs:string in (1 to 10)
996+start $s when true()
997+end $e when $e - $s eq 3
998+return <window>{$w}</window>
999
1000=== added file 'test/rbkt/Queries/zorba/windowing/tumbling45.xq'
1001--- test/rbkt/Queries/zorba/windowing/tumbling45.xq 1970-01-01 00:00:00 +0000
1002+++ test/rbkt/Queries/zorba/windowing/tumbling45.xq 2011-12-06 00:30:31 +0000
1003@@ -0,0 +1,4 @@
1004+for tumbling window $w in (1 to 10)
1005+start $s when true()
1006+end $e when $e - $s
1007+return $w instance of xs:integer
1008
1009=== added file 'test/rbkt/Queries/zorba/windowing/tumbling46.xq'
1010--- test/rbkt/Queries/zorba/windowing/tumbling46.xq 1970-01-01 00:00:00 +0000
1011+++ test/rbkt/Queries/zorba/windowing/tumbling46.xq 2011-12-06 00:30:31 +0000
1012@@ -0,0 +1,17 @@
1013+declare function local:window($seq)
1014+{
1015+ for tumbling window $w in $seq
1016+ start $s when true()
1017+ end $e when $e - $s eq 3
1018+ return
1019+ <window>{
1020+ if ($w instance of xs:integer)
1021+ then
1022+ $w
1023+ else
1024+ $s
1025+ }</window>
1026+};
1027+
1028+local:window(1 to 10)
1029+
1030
1031=== added file 'test/rbkt/Queries/zorba/windowing/tumbling47.xq'
1032--- test/rbkt/Queries/zorba/windowing/tumbling47.xq 1970-01-01 00:00:00 +0000
1033+++ test/rbkt/Queries/zorba/windowing/tumbling47.xq 2011-12-06 00:30:31 +0000
1034@@ -0,0 +1,20 @@
1035+declare variable $local:foo as xs:integer* := 1 to 10;
1036+
1037+
1038+declare function local:window()
1039+{
1040+ for tumbling window $w in $local:foo
1041+ start $s when true()
1042+ end $e when $e - $s eq 3
1043+ return
1044+ <window>{
1045+ if ($w instance of xs:integer)
1046+ then
1047+ $w
1048+ else
1049+ $s
1050+ }</window>
1051+};
1052+
1053+local:window()
1054+
1055
1056=== added file 'test/rbkt/Queries/zorba/windowing/tumbling48.xq'
1057--- test/rbkt/Queries/zorba/windowing/tumbling48.xq 1970-01-01 00:00:00 +0000
1058+++ test/rbkt/Queries/zorba/windowing/tumbling48.xq 2011-12-06 00:30:31 +0000
1059@@ -0,0 +1,18 @@
1060+declare variable $local:foo as xs:integer* := 1 to 5;
1061+
1062+declare function local:window()
1063+{
1064+ for tumbling window $w1 in $local:foo
1065+ start $s when true()
1066+ end $e when $e - $s eq 3
1067+ for tumbling window $w2 in $w1
1068+ start $s when true()
1069+ end $e when true()
1070+ return
1071+ <window>{
1072+ fn:distinct-values($w1[.=$w2])
1073+ }</window>
1074+};
1075+
1076+local:window()
1077+
1078
1079=== added file 'test/rbkt/Queries/zorba/windowing/tumbling49.xq'
1080--- test/rbkt/Queries/zorba/windowing/tumbling49.xq 1970-01-01 00:00:00 +0000
1081+++ test/rbkt/Queries/zorba/windowing/tumbling49.xq 2011-12-06 00:30:31 +0000
1082@@ -0,0 +1,12 @@
1083+declare variable $local:foo as xs:integer* := 1 to 10;
1084+
1085+declare function local:window()
1086+{
1087+ for tumbling window $w in $local:foo
1088+ start $s when false()
1089+ end $e when false()
1090+ return
1091+ <window>{$w}</window>
1092+};
1093+
1094+local:window()
1095
1096=== added file 'test/rbkt/Queries/zorba/windowing/windowing13.spec'
1097--- test/rbkt/Queries/zorba/windowing/windowing13.spec 1970-01-01 00:00:00 +0000
1098+++ test/rbkt/Queries/zorba/windowing/windowing13.spec 2011-12-06 00:30:31 +0000
1099@@ -0,0 +1,1 @@
1100+Error: http://www.w3.org/2005/xqt-errors:XPST0003
1101
1102=== added file 'test/rbkt/Queries/zorba/windowing/windowing13.xq'
1103--- test/rbkt/Queries/zorba/windowing/windowing13.xq 1970-01-01 00:00:00 +0000
1104+++ test/rbkt/Queries/zorba/windowing/windowing13.xq 2011-12-06 00:30:31 +0000
1105@@ -0,0 +1,4 @@
1106+for window $w in (1 to 10)
1107+start $s when true()
1108+end $e when false()
1109+return <window>{$w}</window>

Subscribers

People subscribed via source and target branches