[MCOL-4587] sql_mode=ORACLE specific functions do not work with ColumnStore tables Created: 2021-03-05  Updated: 2021-03-05  Resolved: 2021-03-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: PrimProc
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MCOL-4044 Built In SQL Functions not working wi... Closed
Relates
relates to MDEV-10342 Providing compatibility for basic SQL... Closed

 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.


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