[MCOL-281] LDI using cpimport pads char column values with spaces Created: 2016-09-01 Updated: 2016-09-13 Resolved: 2016-09-13 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 1.0.1, 1.0.2 |
| Fix Version/s: | 1.0.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 1.0.3 | ||||||||
| Description |
|
When LDI uses cpimport to load data in the background (infinidb_use_import_for_batchinsert=1, which is the default setting in my.cnf), the loaded data is incorrect. After loading the dbt3.region table with 5 rows, ------------
------------
------------ The following query returned no data: select * from region where r_name = 'MIDDLE EAST'; If should return: ------------
------------
------------ If I use the other methods to load data into the table, the query worked correctly. 1. Insert Further investigation revealed that LDI with cpimport loads data with space padded to char strings: Good table MariaDB [mytest]> select r_regionkey, r_name, hex(r_name) from region;
------------
------------ Bad table MariaDB [mytest]> select r_regionkey, r_name, hex(r_name) from badregion;
------------
------------ This issue has caused much pain in my effort to get the DBT3 queries to work and to get DBT3 performance stats. One good thing came out from it is the it triggered the issue as described in |
| Comments |
| Comment by David Hall (Inactive) [ 2016-09-07 ] |
|
Just changed the way the thing looked for length. |
| Comment by Andrew Hutchings (Inactive) [ 2016-09-07 ] |
|
Code review done. Fix looks good to me! |
| Comment by Daniel Lee (Inactive) [ 2016-09-13 ] |
|
Build verified: Name : mariadb-columnstore-platform |