1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-05-28 13:01:26 +03:00
mariadb-columnstore-engine/mysql-test/columnstore/basic/r/mcs204_caldroppartitions_function.result
Alexander Barkov ccd6b83be5 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.
2021-04-16 09:04:25 +04:00

35 lines
1.3 KiB
Plaintext

DROP DATABASE IF EXISTS mcs204_db;
CREATE DATABASE mcs204_db;
USE mcs204_db;
CREATE TABLE t1(col1 INT, col2 INT, col3 CHAR(8)) ENGINE=Columnstore;
LOAD DATA LOCAL infile 'MTR_SUITE_DIR/../std_data/100Krows.dat' INTO TABLE t1 FIELDS TERMINATED BY '|';;
SELECT COUNT(*) FROM t1;
COUNT(*)
100001
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
SELECT COUNT(*) FROM t1;
COUNT(*)
12800128
SELECT calshowpartitions('t1', 'col1');
calshowpartitions('t1', 'col1')
Part# Min Max Status
0.0.1 0 32767 Enabled
0.1.1 0 32767 Enabled
SELECT caldroppartitions('t1', '0.0.1');
caldroppartitions('t1', '0.0.1')
Partitions are dropped successfully
SELECT calshowpartitions('t1', 'col1');
calshowpartitions('t1', 'col1')
Part# Min Max Status
0.1.1 0 32767 Enabled
SELECT COUNT(*) FROM t1;
COUNT(*)
4419648
DROP DATABASE mcs204_db;