You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4674 Fix ColumnStore to run MTR tests in a build directory
This commit is contained in:
22
mysql-test/columnstore/basic/t/mcs95_variance_functions.test
Normal file
22
mysql-test/columnstore/basic/t/mcs95_variance_functions.test
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# Test Variance functions
|
||||
# Author: Bharath, bharath.bokka@mariadb.com
|
||||
#
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcs95_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcs95_db;
|
||||
USE mcs95_db;
|
||||
|
||||
CREATE TABLE t1 (a CHAR(1), b INT)ENGINE=Columnstore;
|
||||
INSERT INTO t1 VALUES ('', NULL),('a', 12),('a', 13),('b', 14),('c', 15),('d', 16),('d', 17),('b', 18),('a', 19);
|
||||
|
||||
SELECT a, VARIANCE(b) FROM t1 GROUP BY a ORDER BY a;
|
||||
SELECT a, VAR_POP(b) FROM t1 GROUP BY a ORDER BY a;
|
||||
SELECT a, VAR_SAMP(b) FROM t1 GROUP BY a ORDER BY a;
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs95_db;
|
Reference in New Issue
Block a user