Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
1.0.9
-
None
-
centos6.8
Description
I have a column defined as decimal(7,2), when using cpimport I see the following behavior when importing values to this column. ( csv files )
CREATE TABLE `test_dec` (
`id` int(11) DEFAULT NULL,
`a` decimal(7,2) DEFAULT NULL
) ENGINE=columnstore DEFAULT CHARSET=latin1 |
When importing 23.45, the resulting value is 23.45.
When import 23.5, the resulting value is 2.35, should be 23.50
cpimport is shifting the decimal place if the source file value does not contain 2 decimal places.
by the way,when we change column a before column id, the cpimport result is correct!