1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-29 03:22:01 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7171_regression_bug5229.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

67 lines
1.5 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug5229.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists uriage_inf;
create table uriage_inf(eigyo_shimei varchar(20),uriage numeric) engine=columnstore default charset=utf8;
insert into uriage_inf values('SMITH',1000); insert into uriage_inf values('ALLEN',2000); insert into uriage_inf values('JONES',3000); insert into uriage_inf values('SMITH',4000); insert into uriage_inf values('BLAKE',5000);
drop table if exists uriage_my;
create table uriage_my (eigyo_shimei varchar(20),uriage numeric) engine=myisam default charset=utf8;
insert into uriage_my values('SMITH',1000); insert into uriage_my values('ALLEN',2000); insert into uriage_my values('JONES',3000); insert into uriage_my values('SMITH',4000); insert into uriage_my values('BLAKE',5000);
SELECT
T1.`eigyo_shimei`,SUM(-5)
FROM
URIAGE_inf T1
GROUP BY
T1.`eigyo_shimei`
ORDER BY
T1.`eigyo_shimei`;
SELECT
T1.`eigyo_shimei`,SUM(5)
FROM
URIAGE_inf T1
GROUP BY
T1.`eigyo_shimei`
ORDER BY
T1.`eigyo_shimei`;
SELECT
T1.`eigyo_shimei`,SUM(-5)
FROM
URIAGE_my T1
GROUP BY
T1.`eigyo_shimei`
ORDER BY
T1.`eigyo_shimei`;
SELECT
T1.`eigyo_shimei`,SUM(5)
FROM
URIAGE_my T1
GROUP BY
T1.`eigyo_shimei`
ORDER BY
T1.`eigyo_shimei`;
drop table uriage_inf;
#