|
It in not just happening on decimal columns
MariaDB [mytest]> create table t2 (c1 int) engine=columnstore;
Query OK, 0 rows affected (0.243 sec)
MariaDB [mytest]> insert t2 values (5);
Query OK, 1 row affected (0.239 sec)
MariaDB [mytest]> select * from t2
-> ;
------
------
------
1 row in set (0.084 sec)
MariaDB [mytest]> update t2 set c1=5.8;
Query OK, 0 rows affected (0.255 sec)
Rows matched: 0 Changed: 0 Warnings: 0
MariaDB [mytest]> select * from t2;
------
------
------
1 row in set (0.034 sec)
|
|
Verified on,
Build: 1.4.1-1
engine commit:
f93c3f5
Update on numeric column using decimal values now doesn't set values to NULL on the above build.
Ex:
MariaDB [test]> create table numeric_dt(b boolean, i1 tinyint, i2 smallint, i3 int, i4 bigint, dc1 decimal, dc2 decimal(4,2),f float(4,2), db double) engine =columnstore;
Query OK, 0 rows affected (0.220 sec)
MariaDB [test]> show create table numeric_dt;
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| numeric_dt |
CREATE TABLE `numeric_dt` (
`b` tinyint(1) DEFAULT NULL,
`i1` tinyint(4) DEFAULT NULL,
`i2` smallint(6) DEFAULT NULL,
`i3` int(11) DEFAULT NULL,
`i4` bigint(20) DEFAULT NULL,
`dc1` decimal(10,0) DEFAULT NULL,
`dc2` decimal(4,2) DEFAULT NULL,
`f` float(4,2) DEFAULT NULL,
`db` double DEFAULT NULL
) ENGINE=Columnstore DEFAULT CHARSET=latin1 |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.000 sec)
MariaDB [test]> insert into numeric_dt values(1,-126,-1112,67286287,987297298729872,29727.26626227,2.5383863,8.831513,3.9363);
Query OK, 1 row affected, 2 warnings (0.283 sec)
MariaDB [test]> select * from numeric_dt;
---------------------------------------------------------
| b |
i1 |
i2 |
i3 |
i4 |
dc1 |
dc2 |
f |
db |
---------------------------------------------------------
| 1 |
-126 |
-1112 |
67286287 |
987297298729872 |
29727 |
2.54 |
8.83 |
3.9363 |
---------------------------------------------------------
1 row in set (0.056 sec)
MariaDB [test]> update numeric_dt set b=0.9, i1=112.56, i2=111.98, i3=68662.34221, i4=62862.9292, dc1=27628628.9, dc2=17.869, f=86289.82682,db=2626.28528;
Query OK, 0 rows affected, 1 warning (0.233 sec)
Rows matched: 0 Changed: 0 Warnings: 1
MariaDB [test]> select * from numeric_dt;
-------------------------------------------------------
| b |
i1 |
i2 |
i3 |
i4 |
dc1 |
dc2 |
f |
db |
-------------------------------------------------------
| 1 |
113 |
112 |
68662 |
62863 |
27628629 |
17.87 |
86289.83 |
2626.28528 |
-------------------------------------------------------
1 row in set (0.067 sec)
|