1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/basic/t/mcs214_idbExtentRelativeRid_function.test

24 lines
679 B
Plaintext

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