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
Dlee 22.08.2 updates (#2578)
* Sort test result so the test case would pass * Server message has been changes * Added schema name in query for rows in test case only. Also use lower case schema name * Changed database to lower case * Run test case in its own database to avoid table already exists error Co-authored-by: root <root@rocky8.localdomain>
This commit is contained in:
@ -8,6 +8,12 @@
|
||||
|
||||
--echo # Narrow decimal rounding
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS period_diff_db;
|
||||
--enable_warnings
|
||||
CREATE DATABASE period_diff_db;
|
||||
USE period_diff_db;
|
||||
|
||||
CREATE TABLE t1 (a DECIMAL(18,1));
|
||||
INSERT INTO t1 VALUES (200101.9);
|
||||
SELECT PERIOD_DIFF(a, 200101) FROM t1;
|
||||
@ -41,3 +47,4 @@ INSERT INTO t1 VALUES (9223372036854775807.0-1000);
|
||||
INSERT INTO t1 VALUES (9223372036854775807.0+1000);
|
||||
SELECT a, PERIOD_DIFF(200101,a) FROM t1 ORDER BY 2;
|
||||
DROP TABLE t1;
|
||||
DROP DATABASE period_diff_db;
|
||||
|
@ -22,5 +22,5 @@ create table customer (
|
||||
--disable_warnings
|
||||
--eval LOAD DATA LOCAL infile '$MTR_SUITE_DIR/../std_data/100Krows.dat' INTO TABLE customer FIELDS TERMINATED BY '|'
|
||||
--enable_warnings
|
||||
SELECT e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c where e.object_id = c.object_id and column_name = 'c_custkey';
|
||||
SELECT e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c where e.object_id = c.object_id and table_schema = 'mcol4652' and column_name = 'c_custkey';
|
||||
DROP DATABASE mcol4652;
|
||||
|
@ -1,19 +1,19 @@
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS MCOL4766;
|
||||
DROP DATABASE IF EXISTS mcol4766;
|
||||
--enable_warnings
|
||||
CREATE DATABASE MCOL4766;
|
||||
USE MCOL4766;
|
||||
CREATE DATABASE mcol4766;
|
||||
USE mcol4766;
|
||||
CREATE TABLE t(x integer) ENGINE=COLUMNSTORE;
|
||||
INSERT INTO t(x) VALUES (1), (2);
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='MCOL4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='mcol4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
START TRANSACTION;
|
||||
INSERT INTO t(x) VALUES (-1), (100);
|
||||
ROLLBACK;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='MCOL4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='mcol4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
START TRANSACTION;
|
||||
UPDATE t SET x = 100 WHERE x = 2;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='MCOL4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='mcol4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
ROLLBACK;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='MCOL4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
SELECT c.table_schema, c.table_name, c.column_name, e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c WHERE c.table_schema='mcol4766' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
|
||||
SELECT * FROM t;
|
||||
DROP DATABASE MCOL4766;
|
||||
DROP DATABASE mcol4766;
|
||||
|
@ -10,6 +10,13 @@
|
||||
|
||||
--echo # Garbage at various places of the grammar
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS type_decimal_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE type_decimal_db;
|
||||
USE type_decimal_db;
|
||||
|
||||
CREATE TABLE t1 (a VARCHAR(128));
|
||||
|
||||
INSERT INTO t1 VALUES
|
||||
@ -412,3 +419,5 @@ INSERT INTO t1 VALUES
|
||||
SELECT CONCAT(a), CAST(a AS CHAR) FROM t1 ORDER BY a;
|
||||
SELECT GROUP_CONCAT(a ORDER BY a) FROM t1;
|
||||
DROP TABLE t1;
|
||||
DROP DATABASE type_decimal_db;
|
||||
|
||||
|
@ -5,7 +5,16 @@
|
||||
--echo # MCOL-4615 GROUP_CONCAT() precision loss for huge narrow decimal
|
||||
--echo #
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS type_uint64_db;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE type_uint64_db;
|
||||
USE type_uint64_db;
|
||||
|
||||
CREATE TABLE t1 (a BIGINT UNSIGNED);
|
||||
INSERT INTO t1 VALUES (18446744073709551600);
|
||||
SELECT GROUP_CONCAT(a) FROM t1;
|
||||
DROP TABLE t1;
|
||||
DROP DATABASE type_uint64_db;
|
||||
|
||||
|
Reference in New Issue
Block a user