mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-26 11:48:52 +03:00
* Restructured test suites and added autopilot and extended suites * Updated autopilot with correct branch - develop * Moved setup test case to a 'setup' directory, for consistency * Fixed a path issue * Updated some tests cases to keep up with development Co-authored-by: root <root@rocky8.localdomain>
65 lines
669 B
Plaintext
65 lines
669 B
Plaintext
USE tpch1;
|
|
set @a:=(select max(r_regionkey) from region);
|
|
select @a from region;
|
|
@a
|
|
4
|
|
4
|
|
4
|
|
4
|
|
4
|
|
select @a:=@a+1 from region;
|
|
@a:=@a+1
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
select @a, n_regionkey from nation order by 1,2;
|
|
@a n_regionkey
|
|
9 0
|
|
9 0
|
|
9 0
|
|
9 0
|
|
9 0
|
|
9 1
|
|
9 1
|
|
9 1
|
|
9 1
|
|
9 1
|
|
9 2
|
|
9 2
|
|
9 2
|
|
9 2
|
|
9 2
|
|
9 3
|
|
9 3
|
|
9 3
|
|
9 3
|
|
9 3
|
|
9 4
|
|
9 4
|
|
9 4
|
|
9 4
|
|
9 4
|
|
select @a, n_regionkey from nation group by n_regionkey order by 1,2;
|
|
@a n_regionkey
|
|
9 0
|
|
9 1
|
|
9 2
|
|
9 3
|
|
9 4
|
|
select @a:=@a+1, n_regionkey from nation group by 2 order by 2;
|
|
@a:=@a+1 n_regionkey
|
|
10 0
|
|
11 1
|
|
18 2
|
|
16 3
|
|
14 4
|
|
select @a:=@a+2 as c1, n_regionkey as c2, 1 as c3, '' as c4 from nation group by c2 order by 2;
|
|
c1 c2 c3 c4
|
|
16 0 1
|
|
18 1 1
|
|
32 2 1
|
|
28 3 1
|
|
24 4 1
|