1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

MCOL-4674 Fix ColumnStore to run MTR tests in a build directory

This commit is contained in:
Alexander Barkov
2021-04-13 11:25:25 +04:00
parent d8b473329f
commit 75e3bbc31e
1874 changed files with 1 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#
# Test idbSegment() function
# Author: Bharath, bharath.bokka@mariadb.com
#
-- source ../include/have_columnstore.inc
--disable_warnings
DROP DATABASE IF EXISTS mcs215_db;
--enable_warnings
CREATE DATABASE mcs215_db;
USE mcs215_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;
SELECT idbSegment(col1) FROM t1 WHERE col1=2 LIMIT 1;
SELECT idbSegment(col2) FROM t1 WHERE col1=2 LIMIT 1;
SELECT idbSegment(col3) FROM t1 WHERE col1=2 LIMIT 1;
# Clean UP
DROP DATABASE mcs215_db;