You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +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>
19 lines
1.2 KiB
Plaintext
19 lines
1.2 KiB
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from Autopilot Window functions test suite
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
use tpch1m;
|
|
#
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY 55 ) from orders order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY o_custkey ) from orders order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY abs(o_custkey) ) from orders order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ) from orders order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY 55 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY o_custkey ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY abs(o_custkey) ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
|
|
select o_custkey, MEDIAN(o_custkey) OVER (PARTITION BY abs(o_custkey)+2 ) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
|