Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
2021-3, 2021-4, 2021-5, 2021-6, 2021-7
Description
Some basic sql functions such as:
TRIM
CONCAT
REPLACE
ENCODE
DECODE
are not working in ColumnStore when the server is set to sql_mode=Oracle
MariaDB [(none)]> create database tests;
|
Query OK, 1 row affected (0.001 sec) |
|
MariaDB [(none)]> use tests;
|
Database changed
|
|
MariaDB [tests]> create table foo (id INT, myname varchar(30))engine = innodb; |
Query OK, 0 rows affected (0.012 sec) |
|
MariaDB [tests]> create table bar (id INT, myname varchar(30))engine = columnstore; |
Query OK, 0 rows affected (0.285 sec) |
|
MariaDB [tests]> INSERT INTO foo VALUES (1,'Monty Widenius'); |
Query OK, 1 row affected (0.003 sec) |
|
MariaDB [tests]> INSERT INTO bar VALUES (1,'Monty Widenius'); |
Query OK, 1 row affected (15.549 sec) |
|
MariaDB [tests]> SET SESSION sql_mode=ORACLE;
|
Query OK, 0 rows affected (0.000 sec) |
|
MariaDB [tests]> SELECT CONCAT(id,myname) FROM foo;
|
+-------------------+
|
| CONCAT(id,myname) |
|
+-------------------+
|
| 1Monty Widenius |
|
+-------------------+
|
1 row in set (0.001 sec) |
|
MariaDB [tests]> SELECT CONCAT(id,myname) FROM bar;
|
+-------------------+
|
| CONCAT(id,myname) |
|
+-------------------+
|
| 1 | |
+-------------------+
|
1 row in set (0.073 sec) |
Attachments
Issue Links
- is duplicated by
-
MCOL-4587 sql_mode=ORACLE specific functions do not work with ColumnStore tables
- Closed
- relates to
-
MDEV-10342 Providing compatibility for basic SQL built-in functions
- Closed