You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +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:
@ -12,11 +12,28 @@ CREATE DATABASE mcs212_db;
|
||||
USE mcs212_db;
|
||||
|
||||
CREATE TABLE t1(col1 INT, col2 INT, col3 CHAR(8)) ENGINE=Columnstore;
|
||||
LOAD DATA LOCAL infile './suite/columnstore/std_data/100Krows.dat' INTO TABLE t1 FIELDS TERMINATED BY '|';
|
||||
--replace_result $MTR_SUITE_DIR MTR_SUITE_DIR
|
||||
--eval LOAD DATA LOCAL infile '$MTR_SUITE_DIR/../std_data/100Krows.dat' INTO TABLE t1 FIELDS TERMINATED BY '|';
|
||||
SELECT COUNT(*) FROM t1;
|
||||
|
||||
let $func_exists=`SELECT COUNT(*) FROM mysql.func WHERE name='idbextentmax'`;
|
||||
--disable_query_log
|
||||
if (!$func_exists)
|
||||
{
|
||||
CREATE FUNCTION idbextentmax RETURNS STRING SONAME "ha_columnstore.so";
|
||||
}
|
||||
--enable_query_log
|
||||
|
||||
SELECT idbExtentMax(col1) FROM t1 LIMIT 1;
|
||||
SELECT idbExtentMax(col2) FROM t1 LIMIT 1;
|
||||
|
||||
--disable_query_log
|
||||
if (!$func_exists)
|
||||
{
|
||||
DROP FUNCTION idbextentmax;
|
||||
}
|
||||
--enable_query_log
|
||||
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs212_db;
|
||||
|
Reference in New Issue
Block a user