1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7218_regression_MCOL-3343.test
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* 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>
2022-08-09 21:20:56 +03:00

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;
#