[MCOL-4743] Regression: TIME_TO_SEC(const_expr) erroneosly returns 0 Created: 2021-06-02  Updated: 2021-06-11  Resolved: 2021-06-11

Status: Closed
Project: MariaDB ColumnStore
Component/s: PrimProc
Affects Version/s: 6.1.1
Fix Version/s: 6.1.1

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MCOL-641 Full DECIMAL support in ColumnStore Closed
Relates
relates to MCOL-4414 TIME_TO_SEC() gives unexpected result... Stalled

 Description   

This problem does not exists in develop-5 and is only repeatable in 6.x.

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a INT)ENGINE=ColumnStore;
INSERT INTO t1 VALUES (1);
SELECT TIME_TO_SEC('10:50:40.9999') FROM t1;

+------------------------------+
| TIME_TO_SEC('10:50:40.9999') |
+------------------------------+
|                       0.0000 |
+------------------------------+

Looks wrong. It should return this result:

SELECT TIME_TO_SEC('10:50:40.9999');

+------------------------------+
| TIME_TO_SEC('10:50:40.9999') |
+------------------------------+
|                   39040.9999 |
+------------------------------+



 Comments   
Comment by Daniel Lee (Inactive) [ 2021-06-11 ]

Build verified: 6.1.1 ( Drone #2573)

Generated at Thu Feb 08 02:52:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.