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