Skip to content

Commit

Permalink
skip all tests with LOAD DATA in case of tests via Maxscale
Browse files Browse the repository at this point in the history
  • Loading branch information
timofeyturenko committed Aug 28, 2024
1 parent 0d78f2f commit 63e0457
Show file tree
Hide file tree
Showing 80 changed files with 894 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcol4652;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs201_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs202_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs203_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs204_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs208_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs209_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs210_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs214_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcs215_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Author: Daniel Lee, [email protected]
# -------------------------------------------------------------- #
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4009_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs7000_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4004_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Author: Daniel Lee, [email protected]
# -------------------------------------------------------------- #
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4005_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4006_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4007_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Author: Daniel Lee, [email protected]
# -------------------------------------------------------------- #
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4008_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4010_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -------------------------------------------------------------- #
#
--source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc
#
--disable_warnings
DROP DATABASE IF EXISTS mcs4011_db;
Expand Down
2 changes: 0 additions & 2 deletions mysql-test/columnstore/basic/r/mcs10_drop_db_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ DROP TABLE IF EXISTS mcs10_db2.t_columnstore1;
USE mcs10_db1;
CREATE TABLE t_columnstore1 (id int) engine=columnstore;
CREATE TABLE t_columnstore2 (id int) engine=columnstore;
connect addconroot1, localhost, root,,;
connect addconroot2, localhost, root,,;
connection addconroot1;
DROP TABLE mcs10_db1.t_columnstore1;
connection addconroot2;
Expand Down
39 changes: 39 additions & 0 deletions mysql-test/columnstore/basic/r/mcs117_create_utf8_maxscale.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
set names utf8;
DROP DATABASE IF EXISTS mcs117_db;
CREATE DATABASE имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
USE имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
SELECT DATABASE();
DATABASE()
имя_базы_в_кодировке_утф8_длиной_больше_чем_45
CREATE DATABASE mcs117_db;
USE mcs117_db;
SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.schemata
WHERE schema_name='имя_базы_в_кодировке_утф8_длиной_больше_чем_45';
SCHEMA_NAME
имя_базы_в_кодировке_утф8_длиной_больше_чем_45
DROP DATABASE имя_базы_в_кодировке_утф8_длиной_больше_чем_45;
CREATE TABLE имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48
(
имя_поля_в_кодировке_утф8_длиной_больше_чем_45 INT
)ENGINE=Columnstore;
SHOW CREATE TABLE имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
Table Create Table
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48 CREATE TABLE `имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48` (
`имя_поля_в_кодировке_утф8_длиной_больше_чем_45` int(11) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
CREATE VIEW имя_вью_кодировке_утф8_длиной_больше_чем_42 AS SELECT * FROM имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48;
SHOW CREATE VIEW имя_вью_кодировке_утф8_длиной_больше_чем_42;
View Create View character_set_client collation_connection
имя_вью_кодировке_утф8_длиной_больше_чем_42 CREATE ALGORITHM=UNDEFINED DEFINER=`testUser`@`%` SQL SECURITY DEFINER VIEW `имя_вью_кодировке_утф8_длиной_больше_чем_42` AS select `имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48`.`имя_поля_в_кодировке_утф8_длиной_больше_чем_45` AS `имя_поля_в_кодировке_утф8_длиной_больше_чем_45` from `имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48` utf8mb3 utf8mb3_general_ci
select TABLE_NAME from information_schema.tables where table_schema='mcs117_db' order by 1;
TABLE_NAME
имя_вью_кодировке_утф8_длиной_больше_чем_42
имя_таблицы_в_кодировке_утф8_длиной_больше_чем_48
select COLUMN_NAME from information_schema.columns where table_schema='mcs117_db' order by 1;
COLUMN_NAME
имя_поля_в_кодировке_утф8_длиной_больше_чем_45
имя_поля_в_кодировке_утф8_длиной_больше_чем_45
select TABLE_NAME from information_schema.views where table_schema='mcs117_db' order by 1;
TABLE_NAME
имя_вью_кодировке_утф8_длиной_больше_чем_42
DROP DATABASE mcs117_db;
2 changes: 0 additions & 2 deletions mysql-test/columnstore/basic/r/mcs11_show_db_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ SHOW TABLES IN mcs11_db2;
Tables_in_mcs11_db2
t1
t2
connect addconroot1, localhost, root,,;
connect addconroot2, localhost, root,,;
connection addconroot1;
SHOW DATABASES LIKE 'mcs11%';
Database (mcs11%)
Expand Down
2 changes: 0 additions & 2 deletions mysql-test/columnstore/basic/r/mcs12_alter_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ new_i c i2
2 b 22
DROP TABLE t1;
CREATE TABLE t1 (i INTEGER) ENGINE=Columnstore;
connect addconroot1, localhost, root,,;
connect addconroot2, localhost, root,,;
connection addconroot1;
SHOW CREATE TABLE mcs12_db1.t1;
Table Create Table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ ALTER TABLE t1 ADD PRIMARY KEY pk(c1);
ERROR 42000: Too many keys specified; max 0 keys allowed
ALTER TABLE t1 DROP KEY k1;
ERROR 42000: Can't DROP INDEX `k1`; check that it exists
connect addconroot1, localhost, root,,;
connect addconroot2, localhost, root,,;
connection addconroot1;
ALTER TABLE mcs13_db1.t1 CHANGE c1 c2 INVALIDDATATYPE;
ERROR HY000: Unknown data type: 'INVALIDDATATYPE'
Expand Down
2 changes: 0 additions & 2 deletions mysql-test/columnstore/basic/r/mcs14_truncate_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ CREATE TABLE t1 (id INT) ENGINE=Columnstore;
INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5);
CREATE TABLE t2 LIKE t1;
INSERT INTO t2 SELECT * FROM t1;
connect addconroot1, localhost, root,,;
connect addconroot2, localhost, root,,;
connection addconroot1;
TRUNCATE mcs14_db1.t1;
connection addconroot2;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SET default_storage_engine=Columnstore;
DROP DATABASE IF EXISTS mcs170_db;
CREATE DATABASE mcs170_db;
USE mcs170_db;
SELECT CONNECTION_ID() > 0;
CONNECTION_ID() > 0
1
SELECT CURRENT_USER();
CURRENT_USER()
testUser@max
SELECT USER();
USER()
testUser@%
SELECT SESSION_USER();
SESSION_USER()
testUser@max
SELECT SYSTEM_USER();
SYSTEM_USER()
testUser@max
SELECT DATABASE();
DATABASE()
mcs170_db
DROP DATABASE mcs170_db;
2 changes: 0 additions & 2 deletions mysql-test/columnstore/basic/r/mcs19_grant_revoke.result
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ SHOW GRANTS FOR 'user1'@'localhost';
Grants for user1@localhost
GRANT USAGE ON *.* TO `user1`@`localhost` IDENTIFIED BY PASSWORD '*CB386B3062EFB295ED40F6A5B1A8CFE300642E38'
GRANT CREATE, SELECT, INSERT ON mcs19_db.* TO 'user1'@'localhost';
connect conn1, localhost, user1, Vagrant1|0000001,;
connect conn2, localhost, user1, Vagrant1|0000001,;
connection conn1;
SELECT USER();
USER()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if (!$MYSQL_TEST_ROOT){
}

-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcol_5505_parquet_large_volume;
Expand Down Expand Up @@ -79,4 +80,4 @@ SELECT COUNT(*) FROM t4;
--exec rm $MTR_SUITE_DIR/../std_data/10MRows.parquet
--exec rm $MTR_SUITE_DIR/../std_data/50MRows.parquet
--exec rm $MTR_SUITE_DIR/../std_data/100MRows.parquet
DROP DATABASE mcol_5505_parquet_large_volume;
DROP DATABASE mcol_5505_parquet_large_volume;
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if (!$MYSQL_TEST_ROOT){
}

-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcol_5505_cpimport_parquet;
Expand Down Expand Up @@ -61,4 +62,4 @@ SELECT COUNT(*) FROM t1;
# Clean UP
--exec rm $MTR_SUITE_DIR/../std_data/tests.parquet
--exec rm $MTR_SUITE_DIR/../std_data/nulls.parquet
DROP DATABASE mcol_5505_cpimport_parquet;
DROP DATABASE mcol_5505_cpimport_parquet;
1 change: 1 addition & 0 deletions mysql-test/columnstore/basic/t/mcol641-insert.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

--disable_warnings
DROP DATABASE IF EXISTS mcol641_insert_db;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Susil, [email protected] #
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

let $DATADIR= `SELECT @@datadir`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Susil, [email protected] #
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

let $DATADIR= `SELECT @@datadir`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Susil, [email protected] #
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

let $DATADIR= `SELECT @@datadir`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Susil, [email protected] #
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

let $DATADIR= `SELECT @@datadir`;

Expand Down
1 change: 1 addition & 0 deletions mysql-test/columnstore/basic/t/mcs106_ldi_ignore_rows.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Susil, [email protected] #
#
-- source ../include/have_columnstore.inc
--source ../include/detect_maxscale.inc

let $DATADIR= `SELECT @@datadir`;

Expand Down
16 changes: 14 additions & 2 deletions mysql-test/columnstore/basic/t/mcs10_drop_db_table.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
-- source ../include/have_columnstore.inc
-- source include/have_innodb.inc
-- source ../include/check_maxscale.inc


--disable_warnings
DROP DATABASE IF EXISTS mcs10_db1;
Expand Down Expand Up @@ -68,8 +70,18 @@ DROP TABLE IF EXISTS mcs10_db2.t_columnstore1;
USE mcs10_db1;
CREATE TABLE t_columnstore1 (id int) engine=columnstore;
CREATE TABLE t_columnstore2 (id int) engine=columnstore;
connect (addconroot1, localhost, root,,);
connect (addconroot2, localhost, root,,);
--disable_query_log
if ($maxscale == 1)
{
connect(addconroot1, 127.0.0.1, testUser, 'ct570c3521fCCR#ef',,4006);
connect(addconroot2, 127.0.0.1, testUser, 'ct570c3521fCCR#ef',,4006);
}
if ($maxscale == 0)
{
connect (addconroot1, localhost, root,,);
connect (addconroot2, localhost, root,,);
}
--enable_query_log
connection addconroot1;
DROP TABLE mcs10_db1.t_columnstore1;
connection addconroot2;
Expand Down
1 change: 1 addition & 0 deletions mysql-test/columnstore/basic/t/mcs117_create_utf8.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Author: Bharath, [email protected]
#
-- source ../include/have_columnstore.inc
-- source ../include/detect_maxscale.inc

set names utf8;

Expand Down
Loading

0 comments on commit 63e0457

Please sign in to comment.