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
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Some basic sql functions such as:
TRIM CONCAT REPLACE DECODE are not working in ColumnStore when the server is set to sql_mode=Oracle {code:java} 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) {code} |
Some basic sql functions such as:
TRIM CONCAT REPLACE DECODE are not working in ColumnStore when the server is set to sql_mode=Oracle {code:java} 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) {code} |
Link |
This issue relates to |
Fix Version/s | 1.5 [ 22800 ] |
Description |
Some basic sql functions such as:
TRIM CONCAT REPLACE DECODE are not working in ColumnStore when the server is set to sql_mode=Oracle {code:java} 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) {code} |
Some basic sql functions such as:
TRIM CONCAT REPLACE DECODE are not working in ColumnStore when the server is set to sql_mode=Oracle {code:java} 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) {code} |
Assignee | Todd Stoffel [ toddstoffel ] |
Assignee | Todd Stoffel [ toddstoffel ] | David Hall [ david.hall ] |
Rank | Ranked higher |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Fix Version/s | 1.5.5 [ 24414 ] | |
Fix Version/s | 1.5 [ 22800 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Fix Version/s | 5.5.1 [ 25030 ] | |
Fix Version/s | 5.5.1 [ 25030 ] | |
Fix Version/s | 1.5.5 [ 24414 ] |
Rank | Ranked higher |
Description |
Some basic sql functions such as:
TRIM CONCAT REPLACE DECODE are not working in ColumnStore when the server is set to sql_mode=Oracle {code:java} 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) {code} |
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 {code:java} 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) {code} |
Assignee | David Hall [ david.hall ] | Ben Thompson [ ben.thompson ] |
Priority | Critical [ 2 ] | Blocker [ 1 ] |
Priority | Blocker [ 1 ] | Major [ 3 ] |
Rank | Ranked higher |
Rank | Ranked lower |
Rank | Ranked higher |
Fix Version/s | 6.1 [ 25201 ] | |
Fix Version/s | 5.5.1 [ 25030 ] |
Fix Version/s | 5.6.1 [ 25031 ] |
Fix Version/s | 6.1 [ 25201 ] |
Rank | Ranked higher |
Sprint | 2021-3 [ 498 ] |
Rank | Ranked higher |
Sprint | 2021-3 [ 498 ] | 2021-3, 2021-4 [ 498, 499 ] |
Rank | Ranked higher |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Rank | Ranked lower |
Rank | Ranked higher |
Sprint | 2021-3, 2021-4 [ 498, 499 ] | 2021-3, 2021-4, 2021-5 [ 498, 499, 504 ] |
Sprint | 2021-3, 2021-4, 2021-5 [ 498, 499, 504 ] | 2021-3, 2021-4, 2021-5, 2021-6 [ 498, 499, 504, 509 ] |
Rank | Ranked higher |
Sprint | 2021-3, 2021-4, 2021-5, 2021-6 [ 498, 499, 504, 509 ] | 2021-3, 2021-4, 2021-5, 2021-6, 2021-7 [ 498, 499, 504, 509, 514 ] |
Assignee | Ben Thompson [ ben.thompson ] | David Hall [ david.hall ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Fix Version/s | 6.1.1 [ 25600 ] | |
Fix Version/s | 5.6.1 [ 25031 ] |
Status | In Review [ 10002 ] | In Testing [ 10301 ] |
Fix Version/s | 5.6.1 [ 25031 ] | |
Fix Version/s | 6.1.1 [ 25600 ] |
Assignee | David Hall [ david.hall ] | Daniel Lee [ dleeyh ] |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |
Zendesk Related Tickets | 122588 169063 116013 |
Build verified: 5.6.1 ( Drone #2325 )
Verified all mentioned functions return same result as InnoDB.