1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-03 08:20:57 +03:00

move mtr suites here

This commit is contained in:
mariadb-RomanNavrotskiy
2021-01-29 16:09:44 +02:00
parent 86a32c2bc3
commit 73b4147cf3
1672 changed files with 1017242 additions and 13 deletions

View File

@@ -0,0 +1,45 @@
DROP DATABASE IF EXISTS mcs286_db;
CREATE DATABASE mcs286_db;
USE mcs286_db;
CREATE TABLE t1 (a INT, b CHAR(15))ENGINE=Columnstore;
INSERT INTO t1 VALUES (NULL, ''),(1, 'mariadb'),(2, 'columnstore'),(3, 'Innodb');
SELECT LEFT('mariadb cs', 7) FROM t1 LIMIT 1;
LEFT('mariadb cs', 7)
mariadb
SELECT LEFT('mariadb cs', 8) FROM t1 LIMIT 1;
LEFT('mariadb cs', 8)
mariadb
SELECT LEFT('mariadb cs', 9) FROM t1 LIMIT 1;
LEFT('mariadb cs', 9)
mariadb c
SELECT b, LEFT(b, 0) FROM t1 ORDER BY 1;
b LEFT(b, 0)
NULL NULL
columnstore NULL
Innodb NULL
mariadb NULL
SELECT b, LEFT(b, -1) FROM t1 ORDER BY 1;
b LEFT(b, -1)
NULL NULL
columnstore
Innodb
mariadb
SELECT b, LEFT(b, 6) FROM t1 ORDER BY 1;
b LEFT(b, 6)
NULL NULL
columnstore column
Innodb Innodb
mariadb mariad
SELECT b, LEFT(b, 9) FROM t1 ORDER BY 1;
b LEFT(b, 9)
NULL NULL
columnstore columnsto
Innodb Innodb
mariadb mariadb
SELECT b, LEFT(concat('mmm_', b), 10) FROM t1 ORDER BY 1;
b LEFT(concat('mmm_', b), 10)
NULL NULL
columnstore mmm_column
Innodb mmm_Innodb
mariadb mmm_mariad
DROP DATABASE mcs286_db;