1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-4678 MTR tests fail because of /tmp and ./ with LOAD DATA

Also fixing the problem with missing UDFs for the affected tests.
(see MCOL-4659 for details):
When mtr runs without --remote, the UDFs must be installed inside
the test using CREATE FUNCTION.

Note, there are still more tests left with missing UDFs. They'll be
fixed separately.
This commit is contained in:
Alexander Barkov
2021-04-16 08:12:53 +04:00
parent c955ba34cd
commit ccd6b83be5
39 changed files with 410 additions and 120 deletions

View File

@ -11,6 +11,17 @@ DROP DATABASE IF EXISTS mcs207_db;
CREATE DATABASE mcs207_db;
USE mcs207_db;
let $func_exists=`SELECT COUNT(*) FROM mysql.func WHERE name='mcssystemready'`;
--disable_query_log
if (!$func_exists)
{
CREATE FUNCTION mcssystemready RETURNS INTEGER SONAME "ha_columnstore.so";
CREATE FUNCTION mcssystemreadonly RETURNS INTEGER SONAME "ha_columnstore.so";
}
--enable_query_log
# Returns 1 if the system can accept queries, 0 if it's not ready yet
SELECT mcsSystemReady();
@ -19,5 +30,14 @@ SELECT mcsSystemReady();
# Returns 0 if the system is writable.
SELECT mcsSystemReadOnly();
--disable_query_log
if (!$func_exists)
{
DROP FUNCTION mcssystemready;
DROP FUNCTION mcssystemreadonly;
}
--enable_query_log
# Clean UP
DROP DATABASE mcs207_db;