1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +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,29 @@
DROP DATABASE IF EXISTS mcs186_db;
CREATE DATABASE mcs186_db;
USE mcs186_db;
SET default_storage_engine=Columnstore;
CREATE TABLE t1 (a DATE, b DATETIME);
INSERT INTO t1 VALUES ('0-0-0', '0-0-0 0:0:0'), ('1212-12-12', '1212-12-11 11:11:11'), ('3333-03-03', '3333-3-4 3:33:33');
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` date DEFAULT NULL,
`b` datetime DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
SELECT DAYOFYEAR('1212-12-12 11:11:11');
DAYOFYEAR('1212-12-12 11:11:11')
347
SELECT DAYOFYEAR('2020-12-22');
DAYOFYEAR('2020-12-22')
357
SELECT a, DAYOFYEAR(a) FROM t1 ORDER BY 1;
a DAYOFYEAR(a)
0000-00-00 2147483647
1212-12-12 347
3333-03-03 62
SELECT b, DAYOFYEAR(b) FROM t1 ORDER BY 1;
b DAYOFYEAR(b)
0000-00-00 00:00:00 2147483647
1212-12-11 11:11:11 346
3333-03-04 03:33:33 63
DROP DATABASE mcs186_db;