[MCOL-2062] cpimport scientific notation conversion problem Created: 2019-01-04 Updated: 2020-08-25 Resolved: 2019-01-14 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | cpimport |
| Affects Version/s: | 1.0.15, 1.1.6, 1.2.2 |
| Fix Version/s: | 1.0.16, 1.1.7, 1.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Juan | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
After loading data (using cpimport), noticed some issues with it. When I load the data using cpimport, the field value which is stored as in scientific form (8e-05), it gets loaded into the database as 0.000008 instead of 0.000080 When I use the regular load infile command, the data is loaded just fine.
|
| Comments |
| Comment by Patrick LeBlanc (Inactive) [ 2019-01-09 ] |
|
IIRC we had to fix this at Tune, and the fix was relatively easy. I think there is one fcn in cpimport that does the conversion, and I think I just made it use a conversion function from the standard library instead of doing it 'by hand'. So, if memory serves, this should be an easy fix once we get to it. |
| Comment by Patrick LeBlanc (Inactive) [ 2019-01-09 ] |
|
Since folks are waiting on this I went ahead and did it while I was thinking about it. It's probably similar to what I did at Tune b/c there aren't a lot of other ways to do it unless I made it more complicated than it needs to be. Added a test to our regression suite, so there are 2 PRs for this. https://github.com/mariadb-corporation/mariadb-columnstore-regression-test/pull/96 |
| Comment by Daniel Lee (Inactive) [ 2019-01-14 ] |
|
Test table: create table t1 (c1 decimal(18,8), c2 double, c3 float ) engine=columnstore; Build verified: 1.2.3-1 1-1-7-1 1.0.16-1
|