1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-5519: new defaults in columnstore.cnf (#2894)

feat(charset)!: utf8 is a new charset default and utf8_general_ci is a new collation default in the engine configuration file shipped
---------

Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
Co-authored-by: mariadb-DanielLee <daniel.lee@mariadb.com>
This commit is contained in:
mariadb-AlexeyVorovich
2023-08-15 11:04:32 -04:00
committed by GitHub
parent 712d34a407
commit 64f1d541d0
50 changed files with 139 additions and 165 deletions

View File

@ -15,7 +15,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`c1` char(10) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM mcs12_db1.t1;
a c1
1 a
@ -29,7 +29,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`c1` char(10) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM t1;
a c1
1 a
@ -44,7 +44,7 @@ Table Create Table
t2 CREATE TABLE `t2` (
`a` int(11) DEFAULT NULL,
`c1` char(10) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM t2;
a c1
1 a
@ -59,7 +59,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`c1` char(10) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM t1;
a c1
1 a
@ -84,7 +84,7 @@ t1 CREATE TABLE `t1` (
`c` char(10) DEFAULT NULL,
`t` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`i2` int(11) DEFAULT NULL COMMENT 'Add one more column.'
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
ALTER TABLE t1 DROP COLUMN t;
SHOW CREATE TABLE t1;
Table Create Table
@ -92,7 +92,7 @@ t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL,
`c` char(10) DEFAULT NULL,
`i2` int(11) DEFAULT NULL COMMENT 'Add one more column.'
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM t1;
i c i2
1 a NULL
@ -106,7 +106,7 @@ t1 CREATE TABLE `t1` (
`new_i` int(11) DEFAULT NULL,
`c` char(10) DEFAULT NULL,
`i2` int(11) DEFAULT NULL COMMENT 'Add one more column.'
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM t1;
new_i c i2
1 a NULL
@ -122,7 +122,7 @@ SHOW CREATE TABLE mcs12_db1.t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
ALTER TABLE mcs12_db1.t1 ADD COLUMN c CHAR(10);
INSERT INTO mcs12_db1.t1 VALUES (1, 'a'),(2, 'b');
connection addconroot2;
@ -141,7 +141,7 @@ t1 CREATE TABLE `t1` (
`i` int(11) DEFAULT NULL,
`c` char(10) DEFAULT NULL,
`i2` int(11) DEFAULT NULL COMMENT 'Add one more column.'
) ENGINE=Columnstore DEFAULT CHARSET=latin1
) ENGINE=Columnstore DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
SELECT * FROM mcs12_db1.t1;
i c i2
1 a NULL