Improve installation procedure and reduce SQL limitations (MCOL-3686)

[MCOL-3721] COLLATE used in DDL and ORDER BY should be allowed Created: 2020-01-10  Updated: 2022-12-01  Resolved: 2020-02-12

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.3

Type: Sub-Task Priority: Major
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2020-1, 2020-2, 2020-4, 2020-5, 2020-6, 2020-7

 Description   

When COLLATE is used in DDL it should be allowed to pass with warnings. Additionally if it doesn't in ORDER BY it should pass in that too with warnings.



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2020-02-01 ]

We don't have any code to give warnings on other DDL issues so cannot generate warnings there. But we can generate a warning on an ORDER BY.

Comment by David Hall (Inactive) [ 2020-02-12 ]

QA:

--Test COLLATE in ORDER BY
DROP TABLE IF EXISTS test_collate;
CREATE TABLE test_collate (a INT, b INT) ENGINE=columnstore;
INSERT INTO test_collate VALUES (1,2), (2,4);
SELECT a, b FROM test_collate ORDER BY a COLLATE latin1_german2_ci;
SHOW WARNINGS;
SELECT a, b FROM test_collate ORDER BY a COLLATE latin1_german2_ci DESC;
SHOW WARNINGS;
DROP TABLE IF EXISTS test_collate;
 
--Test COLLATE in table definition and column definition
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (col1 CHAR(10)) CHARSET latin1 COLLATE latin1_bin ENGINE=columnstore;
INSERT INTO t1 VALUES ('a'), ('1'), ('-1');
SELECT col1 FROM t1;
DESCRIBE t1;
DROP TABLE IF EXISTS t1;
 
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (col1 CHAR(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci) ENGINE=columnstore;
INSERT INTO t1 VALUES ('a'), ('1'), ('-1');
SELECT col1 FROM t1;
DESCRIBE t1;
DROP TABLE IF EXISTS t1;

Should result in warning message
Note 1618 COLLATE is ignored in ColumnStore

Comment by Daniel Lee (Inactive) [ 2020-02-12 ]

Build tested: 1.4.3-1 BB nightly
Engine commit: 8588678

MariaDB [mytest]> show warnings;
--------------------------------------------

Level Code Message

--------------------------------------------

Note 1618 COLLATE is ignored in ColumnStore

--------------------------------------------
1 row in set (0.000 sec)

Generated at Thu Feb 08 02:44:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.