[MCOL-2116] TRIM() can not be used with ColumnStore 1.2.x in sql_mode=oracle Created: 2019-01-28 Updated: 2023-03-06 Resolved: 2023-03-06 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | N/A |
| Affects Version/s: | 1.2.1, 1.2.2 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | oracle, sql_mode | ||
| Issue Links: |
|
||||||||
| Epic Link: | ColumnStore Compatibility Improvements | ||||||||
| Description |
|
One can not use TRIM() function with ColumnStore 1.2.x while sql_mode=oracle. Test case is simple:
There was no problem like this with ColumnStore 1.1.x., so it's regression of a kind. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2019-01-28 ] | |||||||||||||||||||||||||||||||
|
Unfortunately can't make this a straight alias as trim_oracle returns NULL on empty result. We might be able to modify the internal trim function to have an extra parameter for this. We do this in a few other functions. | |||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2019-01-28 ] | |||||||||||||||||||||||||||||||
|
Side note: there are several string functions such as ltrim/rtrim, rpad and substr that will have this problem. | |||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2019-01-29 ] | |||||||||||||||||||||||||||||||
|
recreated with TRIM(TRAILING '.' FROM TRIM()+0 functions that we use for removing not significant zeros after decimal point with oracle sql_mode
| |||||||||||||||||||||||||||||||
| Comment by Todd Stoffel (Inactive) [ 2023-03-06 ] | |||||||||||||||||||||||||||||||
|
This ticket was opened prior to convergence with the server. It may have been rendered obsolete. If this issue still exists in a modern version, please open a new request. |