[MCOL-1246] Trailing whitespace in CHAR/VARCHAR break string matches Created: 2018-03-07 Updated: 2020-11-12 Resolved: 2018-03-23 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.3 |
| Fix Version/s: | 1.1.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Epic Link: | ColumnStore Compatibility Improvements | ||||||||||||||||||||
| Sprint: | 2018-05, 2018-06 | ||||||||||||||||||||
| Description |
|
If there is a trailing space in a char/varchar column then string matches become impossible:
Whereas with InnoDB:
|
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2018-03-07 ] | ||||||||
|
Affects partition elimination as well | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-03-07 ] | ||||||||
|
Pull request open. For QA: ColumnStore should behave like the InnoDB in the description after the patch. | ||||||||
| Comment by Roman [ 2018-03-09 ] | ||||||||
|
Bug is fixed, however there are corresponding issues. | ||||||||
| Comment by Roman [ 2018-03-09 ] | ||||||||
|
Need some attention from Andrew. | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-03-09 ] | ||||||||
|
Ooo... Interesting, we do a direct BPS step for this instead of a DSS step. This could also be an optimisation issue... Edit: nope, actually DSS doesn't work for TEXT, that is why I disabled it for TEXT columns (see commit 6128293ad for more info) | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-03-09 ] | ||||||||
|
Added commit to support for BPS step so that TEXT and some other VARCHAR cases are also covered. | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2018-03-09 ] | ||||||||
|
Added support for Roman's second case after looking at the correct SQL-92 support. Test case pull request in the regression suite. | ||||||||
| Comment by Daniel Lee (Inactive) [ 2018-03-23 ] | ||||||||
|
Build verified: 1.1.4-1 source /root/columnstore/mariadb-columnstore-server Merge pull request #104 from mariadb-corporation/davidhilldallas-patch-3 update version /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #427 from mariadb-corporation/ Mcol 1225 - fix mysql/lib library path Reproduced issue in 1.1.3-1 and verified fix in 1.1.4-1 [root@localhost ~]# mcsmysql Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> use mytest MariaDB [mytest]> insert into t1 values (1, 'ABC '); MariaDB [mytest]> select * from t1 where b = 'ABC';
-----
----- MariaDB [mytest]> select * from t1 where b like 'ABC'; MariaDB [mytest]> select a, hex(b) from t1;
-----
----- MariaDB [mytest]> |