1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

add funtions loading to all MTRs

This commit is contained in:
Timofey Turenko
2025-07-04 13:46:07 +03:00
committed by Leonid Fedorov
parent 6eeb948ad2
commit 4a79f8890f
8 changed files with 16 additions and 3 deletions

View File

@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
--source ../include/functions.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4009_db;
@ -60,3 +61,4 @@ select calshowpartitions('lineitem','l_orderkey');
# -------------------------------------------------------------- #
#
DROP DATABASE mcs4009_db;
--source ../include/drop_functions.inc

View File

@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/functions.inc
#
use tpch1m;
#
@ -256,3 +257,4 @@ select o_custkey, REGR_AVGX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custk
select o_custkey, REGR_AVGX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_AVGX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_AVGX(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
--source ../include/drop_functions.inc

View File

@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/functions.inc
#
use tpch1m;
#
@ -256,3 +257,4 @@ select o_custkey, REGR_AVGY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custk
select o_custkey, REGR_AVGY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_AVGY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_AVGY(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
--source ../include/drop_functions.inc

View File

@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/functions.inc
#
use tpch1m;
#
@ -256,3 +257,4 @@ select o_custkey, REGR_COUNT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_cust
select o_custkey, REGR_COUNT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 PRECEDING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_COUNT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 PRECEDING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
select o_custkey, REGR_COUNT(o_custkey,o_orderkey) OVER (PARTITION BY abs(o_custkey)+2 ORDER BY o_custkey ,o_orderkey ,o_orderdate ROWS BETWEEN 15 FOLLOWING AND 15 FOLLOWING) from (select * from orders where o_custkey <= 20000) s order by 1, 2;
--source ../include/drop_functions.inc

View File

@ -5,12 +5,13 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/functions.inc
#
USE tpch1;
#
# Negative test case for attempting to drop a non-existent partition.
select caldroppartitions('lineitem', '4.1.1');
select caldisablepartitions('lineitem', '4.1.1');
--source ../include/drop_functions.inc
#

View File

@ -6,6 +6,7 @@
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
--source ../include/functions.inc
#
USE tpch1;
#
@ -36,4 +37,5 @@ select 'q6', birthdate, age, id, col8 from bug3657 where col8=2;
--disable_warnings
drop table if exists bug3657;
--enable_warnings
--source ../include/drop_functions.inc
#

View File

@ -5,10 +5,11 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/functions.inc
#
USE tpch1;
#
select depname, empno, moda(salary) over(partition by depname order by enroll_date) from empsalary order by depname, empno, enroll_date;
select avg(salary),depname, moda(salary) over(partition by depname order by enroll_date) from empsalary group by depname order by depname, avg(salary);
#
--source ../include/drop_functions.inc

View File

@ -5,9 +5,10 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/functions.inc
#
USE tpch1;
#
select mcsSystemPrimary() as a;
#
--source ../include/drop_functions.inc