sql: builtin hlc_to_timestamp doesn't handle decimals with exponents other than -10 #129152
Closed
Description
Builtin function hlc_to_timestamp
doesn't seem to work with decimals without ten fractional digits.
demo@127.0.0.1:26257/demoapp/defaultdb> SELECT hlc_to_timestamp(1723841815000000000);
hlc_to_timestamp
---------------------------------
1970-01-01 00:00:00.172384+00
(1 row)
Time: 3ms total (execution 2ms / network 2ms)
demo@127.0.0.1:26257/demoapp/defaultdb> SELECT hlc_to_timestamp(1723841815000000000.0000000000);
hlc_to_timestamp
--------------------------
2024-08-16 20:56:55+00
(1 row)
Time: 1ms total (execution 1ms / network 0ms)
Jira issue: CRDB-41403
Metadata
Assignees
Labels
SQL built-in functions and semantics thereof.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.SQL Queries TeamFailures and bugs on the master branch.Used to mark GA and release blockers, technical advisories, and bugs for 21.2Used to mark GA and release blockers, technical advisories, and bugs for 22.1Used to mark GA and release blockers, technical advisories, and bugs for 22.2Used to mark GA and release blockers, technical advisories, and bugs for 23.1Used to mark GA and release blockers, technical advisories, and bugs for 23.2Used to mark GA and release blockers, technical advisories, and bugs for 24.1Used to mark GA and release blockers, technical advisories, and bugs for 24.2
Type
Projects
Status
Done