You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
skip bad rows report test on multinode setup
This commit is contained in:
committed by
Leonid Fedorov
parent
1ce46b5e0b
commit
c30b490027
41
mysql-test/columnstore/basic/t/MCOL-5164-max-errors.test
Normal file
41
mysql-test/columnstore/basic/t/MCOL-5164-max-errors.test
Normal file
@@ -0,0 +1,41 @@
|
||||
if (!$MYSQL_TEST_ROOT){
|
||||
skip Should be run by root to execute cpimport;
|
||||
}
|
||||
|
||||
--source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcol5164;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcol5164;
|
||||
USE mcol5164;
|
||||
|
||||
CREATE TABLE t1(col1 INT, col2 VARCHAR(64)) ENGINE=Columnstore;
|
||||
|
||||
--exec mkdir -p /tmp/mtr-mcol5164
|
||||
--exec awk 'BEGIN { for (i = 0; i < 11; i++) { printf "%d,test%d,wrong\n", i, i; }; printf "%d,test%d-good\n", i, i; }' > /tmp/mtr-mcol5164/mcol5164.csv
|
||||
|
||||
--disable_result_log
|
||||
--error 1 # exceeds default max-errors
|
||||
--exec $MCS_CPIMPORT -s , -L /tmp/mtr-mcol5164 mcol5164 t1 /tmp/mtr-mcol5164/mcol5164.csv
|
||||
--enable_result_log
|
||||
SELECT * FROM t1;
|
||||
TRUNCATE t1;
|
||||
|
||||
# implicitly set max-errors
|
||||
--disable_result_log
|
||||
--exec $MCS_CPIMPORT -s , -e 11 -L /tmp/mtr-mcol5164 mcol5164 t1 /tmp/mtr-mcol5164/mcol5164.csv
|
||||
--enable_result_log
|
||||
SELECT * FROM t1;
|
||||
TRUNCATE t1;
|
||||
|
||||
# max-errors = all
|
||||
--disable_result_log
|
||||
--exec $MCS_CPIMPORT -s , -e all -L /tmp/mtr-mcol5164 mcol5164 t1 /tmp/mtr-mcol5164/mcol5164.csv
|
||||
--enable_result_log
|
||||
SELECT * FROM t1;
|
||||
|
||||
# Clean UP
|
||||
--exec rm -rf /tmp/mtr-mcol5164
|
||||
DROP DATABASE mcol5164;
|
Reference in New Issue
Block a user