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
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding01.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding02.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding03.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding04.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding05.xml.res'
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding06.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding07.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding09.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1true
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding10.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
11 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
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding11.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding12.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window num="1">1 2 3</window><window num="2">1 2 3</window><window num="3">4 5 6</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding13.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/sliding14.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window num="1">3 2 1</window><window num="2">6 5 4</window><window num="3">9 8 7</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling01.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling02.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window><window>10</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling04.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window><window>10</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling05.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling06.xml.res'
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling07.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3 4 5 6 7 8 9 10</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling08.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3 4 5 6 7 8 9 10</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling09.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3 4 5 6 7 8 9 10</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling10.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3 4 5 6 7 8 9 10 1 1 2 10 10 9</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling24.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1true
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling25.xml.res'
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling26.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>6 8 10</window><window>12 14</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling27.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>6 8 10</window><window>12 14</window><window>6 8 10</window><window>12 14</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling28.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1</window><window>1</window><window>2</window><window>2</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling29.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
11 2 3 4 5 6 7 8 9 10 1 1 2 10 10 9
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling30.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>3</window><window>6</window><window>3</window><window>6</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling32.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,12 @@
1<run-up>
2 <start-date>2008-01-02</start-date>
3 <start-price>101</start-price>
4 <end-date>2008-01-04</end-date>
5 <end-price>103</end-price>
6</run-up>
7<run-up>
8 <start-date>2008-01-05</start-date>
9 <start-price>102</start-price>
10 <end-date>2008-01-06</end-date>
11 <end-price>104</end-price>
12</run-up>
013
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling33.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<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>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling34.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window num="1">1 2 3</window><window num="2">4 5 6</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling35.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window num="1">1 2 3</window><window num="2">1 2 3</window><window num="3">4 5 6</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling36.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>7 8 9</window><window>4 5 6</window><window>1 2 3</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling38.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3</window><window>4 5 6</window><window>7 8 9</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling39.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window num="1">3 2 1</window><window num="2">6 5 4</window><window num="3">9 8 7</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling40.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,24 @@
1<run-up symbol="ABC">
2 <start-date>2008-01-02</start-date>
3 <start-price>101</start-price>
4 <end-date>2008-01-04</end-date>
5 <end-price>103</end-price>
6</run-up>
7<run-up symbol="ABC">
8 <start-date>2008-01-05</start-date>
9 <start-price>101</start-price>
10 <end-date>2008-01-06</end-date>
11 <end-price>104</end-price>
12</run-up>
13<run-up symbol="DEF">
14 <start-date>2008-01-02</start-date>
15 <start-price>054</start-price>
16 <end-date>2008-01-03</end-date>
17 <end-price>056</end-price>
18</run-up>
19<run-up symbol="DEF">
20 <start-date>2008-01-04</start-date>
21 <start-price>052</start-price>
22 <end-date>2008-01-06</end-date>
23 <end-price>059</end-price>
24</run-up>
025
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling41.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1 2 3 4</window><window>5 6 7 8</window><window>9 10</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling45.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1false false false false false
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling46.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1</window><window>5</window><window>9</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling47.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1</window><window>5</window><window>9</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res'
--- test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/windowing/tumbling48.xml.res 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1<window>1</window><window>2</window><window>3</window><window>4</window><window>5</window>
02
=== added file 'test/rbkt/ExpQueryResults/zorba/windowing/tumbling49.xml.res'
=== modified file 'test/rbkt/Queries/CMakeLists.txt'
--- test/rbkt/Queries/CMakeLists.txt 2011-10-26 13:43:15 +0000
+++ test/rbkt/Queries/CMakeLists.txt 2011-12-06 00:30:31 +0000
@@ -294,3 +294,17 @@
294294
295EXPECTED_FAILURE(test/rbkt/zorba/reference/reference_5 868640)295EXPECTED_FAILURE(test/rbkt/zorba/reference/reference_5 868640)
296296
297
298# Failing windowing tests.
299EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling22 899363)
300
301EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling44 899366)
302
303EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling14 899364)
304EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling16 899364)
305EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling15 899364)
306EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling18 899364)
307EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling19 899364)
308EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling20 899364)
309EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling17 899364)
310EXPECTED_FAILURE(test/rbkt/zorba/windowing/tumbling21 899364)
297311
=== added file 'test/rbkt/Queries/zorba/windowing/sliding01.xq'
--- test/rbkt/Queries/zorba/windowing/sliding01.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding01.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for sliding window $w in (1 to 10)
2start $s when true()
3end $e when true()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/sliding02.xq'
--- test/rbkt/Queries/zorba/windowing/sliding02.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding02.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for sliding window $w in (1 to 10)
2start $s when true()
3end $e when $e - $s eq 2
4return <window>{$w}</window>
5
06
=== added file 'test/rbkt/Queries/zorba/windowing/sliding03.xq'
--- test/rbkt/Queries/zorba/windowing/sliding03.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding03.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for sliding window $w in (1 to 10)
2start $s at $x when true()
3end $e at $y when $y - $x eq 2
4return <window>{$w}</window>
5
06
=== added file 'test/rbkt/Queries/zorba/windowing/sliding04.xq'
--- test/rbkt/Queries/zorba/windowing/sliding04.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding04.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for sliding window $w in (1 to 10)
2start $s at $x when true()
3only end $e at $y when $y - $x eq 2
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/sliding05.xq'
--- test/rbkt/Queries/zorba/windowing/sliding05.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding05.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for sliding window $w in (1 to 10)
2start $s when true()
3only end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/sliding06.xq'
--- test/rbkt/Queries/zorba/windowing/sliding06.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding06.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,6 @@
1declare namespace window = "foo:bar";
2
3for sliding window $"foo:bar":w in (1 to 10)
4start $s when true()
5end $e when false()
6return <window>{$window:w}</window>
07
=== added file 'test/rbkt/Queries/zorba/windowing/sliding07.xq'
--- test/rbkt/Queries/zorba/windowing/sliding07.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding07.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,10 @@
1declare namespace w = "foo:bar";
2
3for sliding window $"foo:bar":w in (1 to 10)
4start $"foo:bar":s at $"foo:bar":x previous $"foo:bar":sp next $"foo:bar":sn when true()
5end $"foo:bar":e at $"foo:bar":y previous $"foo:bar":ep next $"foo:bar":en when false()
6return <window>{
7 string-join (
8 for $w:w in ($w:w, $w:s, $w:x, $w:sp, $w:sn, $w:e, $w:y, $w:ep, $w:en)
9 return string($w:w), " "
10 )}</window>
011
=== added file 'test/rbkt/Queries/zorba/windowing/sliding08.spec'
--- test/rbkt/Queries/zorba/windowing/sliding08.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding08.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0008
02
=== added file 'test/rbkt/Queries/zorba/windowing/sliding08.xq'
--- test/rbkt/Queries/zorba/windowing/sliding08.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding08.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for sliding window $w in (1 to 10)
2start $s when true()
3end $e when $e - $w eq 2
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/sliding09.xq'
--- test/rbkt/Queries/zorba/windowing/sliding09.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding09.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for sliding window $w in (1 to 10)
2start $s at $x previous $sp next $sn when true()
3end $e at $y previous $ep next $en when false()
4where 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)
5return true()
06
=== added file 'test/rbkt/Queries/zorba/windowing/sliding10.xq'
--- test/rbkt/Queries/zorba/windowing/sliding10.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding10.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,18 @@
1for $x1 in 11
2for $x2 in 12
3for $x3 in 13
4for $x4 in 14
5for $x5 in 15
6for $x6 in 16
7for $x7 in 17
8for $x8 in 18
9for $x9 in 19
10for sliding window $x1 in (1 to 10)
11start $x2 at $x3 previous $x4 next $x5 when true()
12end $x6 at $x7 previous $x8 next $x9 when false()
13return
14 string-join(
15 for $i in ($x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9)
16 return string($i), " "
17 )
18
019
=== added file 'test/rbkt/Queries/zorba/windowing/sliding11.xq'
--- test/rbkt/Queries/zorba/windowing/sliding11.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding11.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for sliding window $w in (1 to 10)
2start $s when true()
3end $e when $e - $s eq 2
4count $r
5return <window num="{$r}">{$w}</window>
06
=== added file 'test/rbkt/Queries/zorba/windowing/sliding12.xq'
--- test/rbkt/Queries/zorba/windowing/sliding12.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding12.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,7 @@
1for $i in 1 to 3
2count $r
3for tumbling window $w in (1 to 10)
4start $s when true()
5end $e when $e - $s eq 2
6where $w = $r + 1
7return <window num="{$r}">{$w}</window>
08
=== added file 'test/rbkt/Queries/zorba/windowing/sliding13.xq'
--- test/rbkt/Queries/zorba/windowing/sliding13.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding13.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for sliding window $w in (1 to 10)
2start $s when true()
3only end $e when $e - $s eq 2
4order by $w[2] descending
5return <window>{$w}</window>
06
=== added file 'test/rbkt/Queries/zorba/windowing/sliding14.xq'
--- test/rbkt/Queries/zorba/windowing/sliding14.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/sliding14.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,12 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3only end $e when $e - $s eq 2
4count $r
5return
6 <window num="{$r}">
7 {
8 for $i in $w
9 order by $i descending
10 return $i
11 }
12 </window>
013
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling01.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling01.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling01.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when true()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling02.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling02.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling02.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when $e - $s eq 2
4return <window>{$w}</window>
5
06
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling04.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling04.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling04.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s at $x when true()
3end $e at $y when $y - $x eq 2
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling05.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling05.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling05.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for tumbling window $w in (1 to 10)
2start $s at $x when true()
3only end $e at $y when $y - $x eq 2
4return <window>{$w}</window>
5
06
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling06.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling06.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling06.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3only end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling07.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling07.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling07.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling08.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling08.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling08.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,6 @@
1declare namespace window = "foo:bar";
2
3for tumbling window $window:w in (1 to 10)
4start $s when true()
5end $e when false()
6return <window>{$window:w}</window>
07
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling09.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling09.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling09.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,6 @@
1declare namespace window = "foo:bar";
2
3for tumbling window $"foo:bar":w in (1 to 10)
4start $s when true()
5end $e when false()
6return <window>{$window:w}</window>
07
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling10.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling10.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling10.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,10 @@
1declare namespace w = "foo:bar";
2
3for tumbling window $"foo:bar":w in (1 to 10)
4start $"foo:bar":s at $"foo:bar":x previous $"foo:bar":sp next $"foo:bar":sn when true()
5end $"foo:bar":e at $"foo:bar":y previous $"foo:bar":ep next $"foo:bar":en when false()
6return <window>{
7 string-join (
8 for $w:w in ($w:w, $w:s, $w:x, $w:sp, $w:sn, $w:e, $w:y, $w:ep, $w:en)
9 return string($w:w), " "
10 )}</window>
011
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling11.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling11.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling11.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0008
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling11.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling11.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling11.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when $e - $w eq 2
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling14.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling14.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling14.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling14.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling14.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling14.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $w when true()
3end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling15.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling15.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling15.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,2 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
2
03
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling15.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling15.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling15.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $w when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling16.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling16.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling16.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling16.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling16.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling16.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s at $w when true()
3end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling17.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling17.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling17.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling17.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling17.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling17.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e at $w when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling18.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling18.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling18.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling18.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling18.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling18.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s previous $w when true()
3end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling19.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling19.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling19.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling19.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling19.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling19.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s next $w when true()
3end $e when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling20.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling20.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling20.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling20.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling20.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling20.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e previous $w when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling21.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling21.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling21.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling21.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling21.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling21.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e next $w when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling22.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling22.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling22.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XQST0103
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling22.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling22.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling22.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $s when false()
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling24.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling24.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling24.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,6 @@
1(: check all variables are in scope in the following clause :)
2for tumbling window $w in (1 to 10)
3start $s at $x previous $sp next $sn when true()
4end $e at $y previous $ep next $en when false()
5where 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)
6return true()
07
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling25.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling25.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling25.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for tumbling window $w in ()
2start $s at $x previous $sp next $sn when true()
3end $e at $y previous $ep next $en when false()
4return ($w, $s, $x, $sp, $sn, $e, $y, $ep, $en)
5
06
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling26.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling26.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling26.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,3 @@
1for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
2start $first when $first mod 3 = 0
3return <window>{ $w }</window>
04
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling27.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling27.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling27.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for $w in (1 to 2)
2for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
3start $first when $first mod 3 = 0
4return <window>{ $w }</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling28.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling28.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling28.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for $w at $y in (1 to 2)
2for tumbling window $w in (2, 4, 6, 8, 10, 12, 14)
3start $first when $first mod 3 = 0
4return <window>{ $y }</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling29.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling29.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling29.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,17 @@
1for $x1 in 11
2for $x2 in 12
3for $x3 in 13
4for $x4 in 14
5for $x5 in 15
6for $x6 in 16
7for $x7 in 17
8for $x8 in 18
9for $x9 in 19
10for tumbling window $x1 in (1 to 10)
11start $x2 at $x3 previous $x4 next $x5 when true()
12end $x6 at $x7 previous $x8 next $x9 when false()
13return
14 string-join(
15 for $i in ($x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9)
16 return string($i), " "
17 )
018
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling31.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling31.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling31.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0003
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling31.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling31.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling31.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,3 @@
1for tumbling window $w in (1 to 10)
2start $s next $sn previous $pn when true()
3return <window>{$w}</window>
04
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling32.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling32.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling32.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,19 @@
1let $stock :=
2 <stock>
3 <closing> <date>2008-01-01</date> <price>105</price> </closing>
4 <closing> <date>2008-01-02</date> <price>101</price> </closing>
5 <closing> <date>2008-01-03</date> <price>102</price> </closing>
6 <closing> <date>2008-01-04</date> <price>103</price> </closing>
7 <closing> <date>2008-01-05</date> <price>102</price> </closing>
8 <closing> <date>2008-01-06</date> <price>104</price> </closing>
9 </stock>
10for tumbling window $w in $stock//closing
11 start $first next $second when $first/price < $second/price
12 end $last next $beyond when $last/price > $beyond/price
13return
14 <run-up>
15 <start-date>{fn:data($first/date)}</start-date>
16 <start-price>{fn:data($first/price)}</start-price>
17 <end-date>{fn:data($last/date)}</end-date>
18 <end-price>{fn:data($last/price)}</end-price>
19 </run-up>
020
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling33.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling33.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling33.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when $e - $s eq 2
4count $r
5return <window num="{$r}">{$w}</window>
06
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling34.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling34.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling34.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,6 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when $e - $s eq 2
4count $r
5where $r le 2
6return <window num="{$r}">{$w}</window>
07
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling35.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling35.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling35.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,8 @@
1for $i in 1 to 3
2count $r
3for tumbling window $w in (1 to 10)
4start $s when true()
5end $e when $e - $s eq 2
6where $w = $r + 1
7return <window num="{$r}">{$w}</window>
8
09
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling36.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling36.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling36.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,5 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3only end $e when $e - $s eq 2
4order by $w[2] descending
5return <window>{$w}</window>
06
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling37.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling37.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling37.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0008
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling37.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling37.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling37.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,8 @@
1for tumbling window $w1 in
2 for tumbling window $w2 in (1 to 10)
3 start $s when true()
4 only end $e when $e - $s eq 2
5 return $w2
6start $s when true()
7end $e when $e - $s eq 2
8return <window>{$w2}</window>
09
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling38.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling38.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling38.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,8 @@
1for tumbling window $w1 in
2 for tumbling window $w2 in (1 to 10)
3 start $s when true()
4 only end $e when $e - $s eq 2
5 return $w2
6start $s when true()
7end $e when $e - $s eq 2
8return <window>{$w1}</window>
09
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling39.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling39.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling39.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,12 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3only end $e when $e - $s eq 2
4count $r
5return
6 <window num="{$r}">
7 {
8 for $i in $w
9 order by $i descending
10 return $i
11 }
12 </window>
013
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling40.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling40.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling40.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,27 @@
1let $s := <stocks>
2 <closing> <symbol>ABC</symbol> <date>2008-01-01</date> <price>105</price> </closing>
3 <closing> <symbol>DEF</symbol> <date>2008-01-01</date> <price>057</price> </closing>
4 <closing> <symbol>ABC</symbol> <date>2008-01-02</date> <price>101</price> </closing>
5 <closing> <symbol>DEF</symbol> <date>2008-01-02</date> <price>054</price> </closing>
6 <closing> <symbol>ABC</symbol> <date>2008-01-03</date> <price>102</price> </closing>
7 <closing> <symbol>DEF</symbol> <date>2008-01-03</date> <price>056</price> </closing>
8 <closing> <symbol>ABC</symbol> <date>2008-01-04</date> <price>103</price> </closing>
9 <closing> <symbol>DEF</symbol> <date>2008-01-04</date> <price>052</price> </closing>
10 <closing> <symbol>ABC</symbol> <date>2008-01-05</date> <price>101</price> </closing>
11 <closing> <symbol>DEF</symbol> <date>2008-01-05</date> <price>055</price> </closing>
12 <closing> <symbol>ABC</symbol> <date>2008-01-06</date> <price>104</price> </closing>
13 <closing> <symbol>DEF</symbol> <date>2008-01-06</date> <price>059</price> </closing>
14</stocks>
15for $closings in $s//closing
16let $symbol := $closings/symbol
17group by $symbol
18for tumbling window $w in $closings
19 start $first next $second when $first/price < $second/price
20 end $last next $beyond when $last/price > $beyond/price
21return
22 <run-up symbol="{$symbol}">
23 <start-date>{fn:data($first/date)}</start-date>
24 <start-price>{fn:data($first/price)}</start-price>
25 <end-date>{fn:data($last/date)}</end-date>
26 <end-price>{fn:data($last/price)}</end-price>
27 </run-up>
028
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling41.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling41.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling41.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,9 @@
1declare function local:window()
2{
3 for tumbling window $w in (1 to 10)
4 start $s when true()
5 end $e when $e - $s eq 3
6 return <window>{$w}</window>
7};
8
9local:window()
010
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling42.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling42.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling42.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0003
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling42.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling42.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling42.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s at $x as xs:integer when true()
3end $e when $e - $s eq 3
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling43.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling43.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling43.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0003
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling43.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling43.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling43.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s next $sn as xs:integer when true()
3end $e when $e - $s eq 3
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling44.spec'
--- test/rbkt/Queries/zorba/windowing/tumbling44.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling44.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPTY0004
02
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling44.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling44.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling44.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w as xs:string in (1 to 10)
2start $s when true()
3end $e when $e - $s eq 3
4return <window>{$w}</window>
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling45.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling45.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling45.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for tumbling window $w in (1 to 10)
2start $s when true()
3end $e when $e - $s
4return $w instance of xs:integer
05
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling46.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling46.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling46.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,17 @@
1declare function local:window($seq)
2{
3 for tumbling window $w in $seq
4 start $s when true()
5 end $e when $e - $s eq 3
6 return
7 <window>{
8 if ($w instance of xs:integer)
9 then
10 $w
11 else
12 $s
13 }</window>
14};
15
16local:window(1 to 10)
17
018
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling47.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling47.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling47.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,20 @@
1declare variable $local:foo as xs:integer* := 1 to 10;
2
3
4declare function local:window()
5{
6 for tumbling window $w in $local:foo
7 start $s when true()
8 end $e when $e - $s eq 3
9 return
10 <window>{
11 if ($w instance of xs:integer)
12 then
13 $w
14 else
15 $s
16 }</window>
17};
18
19local:window()
20
021
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling48.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling48.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling48.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,18 @@
1declare variable $local:foo as xs:integer* := 1 to 5;
2
3declare function local:window()
4{
5 for tumbling window $w1 in $local:foo
6 start $s when true()
7 end $e when $e - $s eq 3
8 for tumbling window $w2 in $w1
9 start $s when true()
10 end $e when true()
11 return
12 <window>{
13 fn:distinct-values($w1[.=$w2])
14 }</window>
15};
16
17local:window()
18
019
=== added file 'test/rbkt/Queries/zorba/windowing/tumbling49.xq'
--- test/rbkt/Queries/zorba/windowing/tumbling49.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/tumbling49.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,12 @@
1declare variable $local:foo as xs:integer* := 1 to 10;
2
3declare function local:window()
4{
5 for tumbling window $w in $local:foo
6 start $s when false()
7 end $e when false()
8 return
9 <window>{$w}</window>
10};
11
12local:window()
013
=== added file 'test/rbkt/Queries/zorba/windowing/windowing13.spec'
--- test/rbkt/Queries/zorba/windowing/windowing13.spec 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/windowing13.spec 2011-12-06 00:30:31 +0000
@@ -0,0 +1,1 @@
1Error: http://www.w3.org/2005/xqt-errors:XPST0003
02
=== added file 'test/rbkt/Queries/zorba/windowing/windowing13.xq'
--- test/rbkt/Queries/zorba/windowing/windowing13.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/windowing/windowing13.xq 2011-12-06 00:30:31 +0000
@@ -0,0 +1,4 @@
1for window $w in (1 to 10)
2start $s when true()
3end $e when false()
4return <window>{$w}</window>

Subscribers

People subscribed via source and target branches