[MCOL-4428] WHERE char6col <='STR' OR char6col IS NULL -- returns a wrong result after MCOL-495 Created: 2020-12-02 Updated: 2021-02-15 Resolved: 2020-12-09 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr |
| Affects Version/s: | 5.5.1 |
| Fix Version/s: | 5.5.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
I run this script:
The first SELECT returns one row. The second select returns no rows. The bug was revealed after recent collation-aware comparison changes, and most likely after this commit:
The bug has been in the code for some time and it was not introduced by the collation-aware comparison changes. But these changes helped to reveal this bug. This patch fixes the problem.
|
| Comments |
| Comment by Daniel Lee (Inactive) [ 2020-12-09 ] | ||||
|
Build verified: 5.5.1 (Drone 1304) MariaDB [mytest]> CREATE TABLE `t1` (`p_mfgr` char(6) DEFAULT NULL) ENGINE=Columnstore DEFAULT CHARSET=latin1; MariaDB [mytest]> INSERT INTO `t1` VALUES ('MFGR#1'); MariaDB [mytest]>
--------
-------- MariaDB [mytest]> select p_mfgr from t1 where p_mfgr <='MFGR#1' or p_mfgr is null;
--------
-------- |