1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-22 20:42:36 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7203_regression_MCOL-1559.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

45 lines
1.7 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: MCOL-1559.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists mcol1559;
create table mcol1559 (c7nospace char(7), c7space char(7), c20nospace char(20), c20space char(20), vcnospace varchar(20), vcspace varchar(20)) engine=columnstore;
insert into mcol1559 values ("ABC", "ABC ", "ABC12345678910", "ABC12345678910 ", "ABC", "ABC ");
# All of these should return a row
select * from mcol1559 where c7nospace = "ABC";
select * from mcol1559 where c20nospace = "ABC12345678910";
select * from mcol1559 where c7nospace = "ABC ";
select * from mcol1559 where c20nospace = "ABC12345678910 ";
select * from mcol1559 where vcnospace = "ABC";
select * from mcol1559 where vcnospace = "ABC ";
# All of these should return a row
select * from mcol1559 where c7space = "ABC";
select * from mcol1559 where c20space = "ABC12345678910";
select * from mcol1559 where c7space = "ABC ";
select * from mcol1559 where c20space = "ABC12345678910 ";
select * from mcol1559 where vcspace = "ABC";
select * from mcol1559 where vcspace = "ABC ";
# should return a row
select * from mcol1559 where c7nospace LIKE "ABC";
select * from mcol1559 where c20nospace LIKE "ABC12345678910";
select * from mcol1559 where vcnospace LIKE "ABC";
# should not return a row
select * from mcol1559 where c7nospace LIKE "ABC ";
select * from mcol1559 where c20nospace LIKE "ABC12345678910 ";
select * from mcol1559 where vcnospace LIKE "ABC ";
drop table if exists mcol1559;
#