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/mcs7018_regression_bug2873.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

38 lines
1.6 KiB
Plaintext

# -------------------------------------------------------------- #
# Test case migrated from regression test suite: bug2873.sql
#
# Author: Daniel Lee, daniel.lee@mariadb.com
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
#
USE tpch1;
#
drop table if exists bug2873;
create table bug2873(id int, logtime int, filename varchar(20))engine=columnstore;
insert into bug2873 values
(1, unix_timestamp('2010-05-23 10:00:10'), 'Cam1.jpg'),
(1, unix_timestamp('2010-05-23 10:00:12'), 'Cam1.jpg23'),
(1, unix_timestamp('2010-05-23 10:00:15'), 'LLCam1.jpg'),
(1, unix_timestamp('2010-05-23 10:00:18'), 'EECam1.jpg'),
(1, unix_timestamp('2010-05-23 10:00:19'), 'Hey.jpg'),
(1, unix_timestamp('2010-05-23 10:20:30'), 'Cam11.jpg'),
(1, unix_timestamp('2010-05-23 10:22:10'), 'Cam12.jpg'),
(1, unix_timestamp('2010-05-23 10:25:40'), 'ICam1.jpg'),
(1, unix_timestamp('2010-05-23 10:49:12'), 'Cam1.jpg2'),
(1, unix_timestamp('2010-05-23 10:50:10'), 'Cam15.jpg'),
(1, unix_timestamp('2010-05-23 10:51:10'), 'Cam1.jpg');
set @maxi=(select max(logtime) from bug2873);
select if(filename like 'Cam1.jpg',filename ,'no') datei , count(*)
cnt from bug2873 where logtime > @maxi-3600 group by 1 having datei != 'no';
select if(filename rlike '^Cam1.jpg$',filename ,'no') datei from bug2873 limit 1;
select if(filename rlike '^Cam1.jpg$',filename ,'no') datei from bug2873;
select if(filename rlike '^Cam1.jpg$',filename ,'no') datei from bug2873 where if(filename rlike '^Cam1.jpg$',filename ,'no')='no' limit 1;
drop table bug2873;
#