[MCOL-4647] SEC_TO_TIME(double_or_float) returns a wrong result Created: 2021-03-29 Updated: 2021-04-05 Resolved: 2021-04-05 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | PrimProc |
| Affects Version/s: | 5.6.1, 6.1.1 |
| Fix Version/s: | 6.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 2021-5 | ||||||||||||||||
| Description |
|
This problem is repeatable with both DOUBLE and FLOAT data types:
Looks wrong. The expected result is:
The problem is in this piece of the code in func_sec_to_time.cpp:
It searches for the DOT character assuming that fractional digits go after it. But this is not the case for scientific notation like 2.5e-40. |