Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4044

Built In SQL Functions not working with sql_mode=ORACLE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 5.6.1
    • 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

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              toddstoffel Todd Stoffel (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.