|
1 | 1 | script: | |
| 2 | + super -s -c 'values {x:1},{x:2} | count' |
| 3 | + echo // === |
2 | 4 | super -s -c 'values null,null | count {count}' |
3 | 5 | echo // === |
4 | | - super -s -c 'values {x:1},{x:2} | count {row_number,...this}' |
| 6 | + super -s -c 'values {x:1},{x:2} | count {...this,row_number}' |
5 | 7 | echo // === |
6 | | - super -s -c 'values {x:1,y:1},{x:2,y:2} | count {row_number,x}' |
| 8 | + super -s -c 'values {x:1,y:1},{x:2,y:2} | count {x,row_number}' |
7 | 9 | echo // === |
8 | | - super -s -c 'values [1,2],[3,4] | unnest this into ( count {c,val:this} )' |
9 | | - ! super -s -c 'values null | count {count} | count := count+"hello"' |
| 10 | + super -s -c 'values [1,2],[3,4] | unnest this into ( count {val:this,c} )' |
| 11 | + ! super -s -c 'values null | count | count := count+"hello"' |
10 | 12 | >&2 echo // === |
11 | | - ! super -s -c 'values {x:"foo"} | count {row,...this} | x := x+1' |
| 13 | + ! super -s -c 'values {x:"foo"} | count {...this,row} | x := x+1' |
12 | 14 | >&2 echo // === |
13 | 15 | ! super -s -c 'values {x:"foo"} | count {...this}' |
| 16 | + >&2 echo // === |
| 17 | + ! super -s -c 'count {foo:"foo",1}' |
14 | 18 |
|
15 | 19 | vector: true |
16 | 20 |
|
17 | 21 | outputs: |
18 | 22 | - name: stdout |
19 | 23 | data: | |
| 24 | + {that:{x:1},count:1::uint64} |
| 25 | + {that:{x:2},count:2::uint64} |
| 26 | + // === |
20 | 27 | {count:1::uint64} |
21 | 28 | {count:2::uint64} |
22 | 29 | // === |
23 | | - {row_number:1::uint64,x:1} |
24 | | - {row_number:2::uint64,x:2} |
| 30 | + {x:1,row_number:1::uint64} |
| 31 | + {x:2,row_number:2::uint64} |
25 | 32 | // === |
26 | | - {row_number:1::uint64,x:1} |
27 | | - {row_number:2::uint64,x:2} |
| 33 | + {x:1,row_number:1::uint64} |
| 34 | + {x:2,row_number:2::uint64} |
28 | 35 | // === |
29 | | - {c:1::uint64,val:1} |
30 | | - {c:2::uint64,val:2} |
31 | | - {c:1::uint64,val:3} |
32 | | - {c:2::uint64,val:4} |
| 36 | + {val:1,c:1::uint64} |
| 37 | + {val:2,c:2::uint64} |
| 38 | + {val:3,c:1::uint64} |
| 39 | + {val:4,c:2::uint64} |
33 | 40 | - name: stderr |
34 | 41 | data: | |
35 | | - type mismatch at line 1, column 40: |
36 | | - values null | count {count} | count := count+"hello" |
37 | | - ~~~~~~~~~~~~~ |
| 42 | + type mismatch at line 1, column 32: |
| 43 | + values null | count | count := count+"hello" |
| 44 | + ~~~~~~~~~~~~~ |
38 | 45 | // === |
39 | 46 | type mismatch at line 1, column 47: |
40 | | - values {x:"foo"} | count {row,...this} | x := x+1 |
| 47 | + values {x:"foo"} | count {...this,row} | x := x+1 |
41 | 48 | ~~~ |
42 | 49 | // === |
43 | | - first element in record expression for count must be an identifier at line 1, column 26: |
| 50 | + last element in record expression for count must be an identifier at line 1, column 27: |
44 | 51 | values {x:"foo"} | count {...this} |
45 | | - ~~~~~~~~~ |
| 52 | + ~~~~~~~ |
| 53 | + // === |
| 54 | + last element in record expression for count must be an identifier at line 1, column 18: |
| 55 | + count {foo:"foo",1} |
| 56 | + ~ |
0 commit comments