[MDEV-24020] Trim with remove_str Fails on Spider SE Created: 2020-10-25 Updated: 2021-07-28 Resolved: 2021-07-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.3.25 |
| Fix Version/s: | 10.3.31, 10.4.21, 10.5.12, 10.6.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Yongxin Xu | Assignee: | Nayuta Yanagisawa (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | bug, spider | ||
| Environment: |
ALL |
||
| Description |
|
When using trim() with remove_str (for example trim(leading '*' from col_a)) using the spider storage engine, it fails with ERROR 1582 (42000): Incorrect parameter count in the call to native function 'ltrim') How to Repeat1. Create tables on backends:
2. Create the table on spider:
3. Then, execute a SQL with trim() on spider:
Then, it fails with error
Suggested fixhttps://github.com/MariaDB/server/pull/1662 |
| Comments |
| Comment by Sergei Golubchik [ 2021-07-22 ] |
|
nayuta-yanagisawa, would you mind reviewing it and applying, if it looks ok? thanks! |
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-22 ] |
|
serg Sure, but I will work on https://github.com/MariaDB/server/pull/1842 , because the one in the description is closed. |
| Comment by Yongxin Xu [ 2021-07-26 ] |
|
I create a new pull request on https://github.com/MariaDB/server/pull/1879 for this fix, since I pressed the wrong button in the previous pr. |
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-28 ] |
|
pushed to bb-10.3-mdev-24020 https://github.com/MariaDB/server/commit/0f45ac60342dccdd7c0041659abf2a3fe16a4a7b |
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-28 ] |
|
The spider does not push down the TRIM function on SELECT statements. So, the issue is about UPDATE. |
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-28 ] |
|
Closed by https://github.com/MariaDB/server/commit/43099af95bc554ff870b00bbe965dbcf4662ec86 |