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
839 B
Plaintext
19 lines
839 B
Plaintext
# -------------------------------------------------------------- #
|
|
# Test case migrated from regression test suite: MCOL-3343.sql
|
|
#
|
|
# Author: Daniel Lee, daniel.lee@mariadb.com
|
|
# -------------------------------------------------------------- #
|
|
#
|
|
--source ../include/have_columnstore.inc
|
|
#
|
|
USE tpch1;
|
|
#
|
|
select sum(l_discount) over() winsum, sum(l_discount) sum1, l_quantity * sum(l_discount) over () / sum(l_discount) div1 from lineitem group by l_discount, l_quantity order by l_discount, l_quantity;
|
|
|
|
select l_discount, sum(l_discount) over() / l_discount from lineitem group by l_discount order by l_discount;
|
|
|
|
select l_quantity, l_discount,sum(l_discount) over() winsum, sum(l_discount) sum1, l_quantity * sum(l_discount) over () / sum(l_discount) div1 from lineitem group by l_discount, l_quantity order by l_quantity, l_discount;
|
|
|
|
#
|
|
|