Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
5.6.1, 6.1.1
Description
SET time_zone='+00:00'; |
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a DECIMAL(18,7)) ENGINE=ColumnStore; |
INSERT INTO t1 VALUES (1000000000.3); |
SELECT FROM_UNIXTIME(a) FROM t1; |
+----------------------------+
|
| FROM_UNIXTIME(a) |
|
+----------------------------+
|
| 2001-09-09 06:46:40.902848 |
|
+----------------------------+
|
The fractional part looks wrong.
If I run the same script with MyISAM (or any other engine), the result is as follows:
SET time_zone='+00:00'; |
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a DECIMAL(18,7)) ENGINE=MyISAM; |
INSERT INTO t1 VALUES (1000000000.3); |
SELECT FROM_UNIXTIME(a) FROM t1; |
+----------------------------+
|
| FROM_UNIXTIME(a) |
|
+----------------------------+
|
| 2001-09-09 01:46:40.300000 |
|
+----------------------------+
|
Looks correct.