1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/r/mcs7100_regression_bug3563.result
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

57 lines
1.9 KiB
Plaintext

USE tpch1;
drop table if exists qatabledecimal2byte;
Warnings:
Note 1051 Unknown table 'tpch1.qatabledecimal2byte'
drop table if exists qatabledecimal4byte;
Warnings:
Note 1051 Unknown table 'tpch1.qatabledecimal4byte'
drop table if exists qatabletinyint;
Warnings:
Note 1051 Unknown table 'tpch1.qatabletinyint'
create table qatabledecimal2byte (col1 decimal(1), col2 decimal(4), col3 decimal(4,2)) engine=columnstore;
create table qatabledecimal4byte (col1 decimal(5), col2 decimal(9), col3 decimal(9,2)) engine=columnstore;
create table qatabletinyint (col numeric(2,0)) engine=columnstore;
insert into qatabledecimal2byte values(NULL,NULL,NULL);
insert into qatabledecimal2byte values(null,null,null);
insert into qatabledecimal2byte values(-9, -9999, -99.99);
insert into qatabledecimal2byte values(0, 0, 0);
insert into qatabledecimal2byte values(9, 9999, 99.99);
insert into qatabledecimal4byte values(NULL,NULL,NULL);
insert into qatabledecimal4byte values(null,null,null);
insert into qatabledecimal4byte values(-99999, -999999999, -9999999.99);
insert into qatabledecimal4byte values(0, 0, 0);
insert into qatabledecimal4byte values(99999, 999999999, 9999999.99);
insert into qatabletinyint values (NULL);
insert into qatabletinyint values (null);
insert into qatabletinyint values (-99);
insert into qatabletinyint values (-78);
insert into qatabletinyint values (0);
insert into qatabletinyint values (87);
insert into qatabletinyint values (99);
select * from qatabledecimal2byte;
col1 col2 col3
NULL NULL NULL
NULL NULL NULL
-9 -9999 -99.99
0 0 0.00
9 9999 99.99
select * from qatabledecimal4byte;
col1 col2 col3
NULL NULL NULL
NULL NULL NULL
-99999 -999999999 -9999999.99
0 0 0.00
99999 999999999 9999999.99
select * from qatabletinyint;
col
NULL
NULL
-99
-78
0
87
99
drop table if exists qatabledecimal2byte;
drop table if exists qatabledecimal4byte;
drop table if exists qatabletinyint;