Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
-
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
- duplicates
-
MCOL-4044 Built In SQL Functions not working with sql_mode=ORACLE
- Closed
- relates to
-
MDEV-10342 Providing compatibility for basic SQL built-in functions
- Closed