1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-27 08:21:15 +03:00
Files
mariadb-columnstore-engine/mtr/basic/r/mcs203_calenablepartitions_function.result
mariadb-RomanNavrotskiy 73b4147cf3 move mtr suites here
2021-01-31 01:38:31 +02:00

41 lines
1.7 KiB
Plaintext

DROP DATABASE IF EXISTS mcs203_db;
CREATE DATABASE mcs203_db;
USE mcs203_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 '|';
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 caldisablepartitions('t1', '0.0.1, 0.1.1');
caldisablepartitions('t1', '0.0.1, 0.1.1')
Partitions are disabled successfully
SELECT calshowpartitions('t1', 'col1');
calshowpartitions('t1', 'col1')
Part# Min Max Status
0.0.1 0 32767 Disabled
0.1.1 0 32767 Disabled
SELECT calenablepartitions('t1', '0.0.1');
calenablepartitions('t1', '0.0.1')
Partitions are enabled successfully.
SELECT calshowpartitions('t1', 'col1');
calshowpartitions('t1', 'col1')
Part# Min Max Status
0.0.1 0 32767 Enabled
0.1.1 0 32767 Disabled
DROP DATABASE mcs203_db;