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

sql_mode=ORACLE specific functions do not work with ColumnStore tables

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • N/A
    • PrimProc
    • None

    Description

      See a comment in MDEV-10342:

      Customer reported the following functions not working with CS table.

      MariaDB Column Store 10.4.12

      • DECODE()
      • REPLACE()
      • TRIM()
      • CONCAT()

      create table t2(a int not null, b varchar(100)) engine=columnstore;
      insert into t2 values(1, 'aaaaaaaaaaaa'),(2,'bbbbbbbbbbbbb');
       
      MariaDB [test2]> select a, replace(b, 'a', 'c') from t2;
      ERROR 1178 (42000): The storage engine for the table doesn't support IDB-1001: Function 'replace_oracle' can only be used in the outermost select or orde
       
      MariaDB [test2]> select a, trim(b) from t2;
      ERROR 1178 (42000): The storage engine for the table doesn't support IDB-1001: Function 'trim_oracle' can only be used in the outermost select or order btion with an aggregate function.
       
      MariaDB [test2]> select a, concat(b,'kkkkkkkkk') from t2;
      ERROR 1178 (42000): The storage engine for the table doesn't support IDB-1001: Function 'concat_operator_oracle' can only be used in the outermost select in conjunction with an aggregate function.
       
      MariaDB [test2]> select a, decode(b, 'a', 'c') from t2;
      ERROR 1178 (42000): The storage engine for the table doesn't support IDB-1001: Function 'decode_oracle' can only be used in the outermost select or order by clause and cannot be used in conjunction with an aggregate function.
      

      with sql_mode = '', it works. However, customer insisted that they need sql_mode=oracle.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.