[
https://issues.apache.org/jira/browse/SPARK-52656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-52656:
-----------------------------------
Labels: pull-request-available (was: )
> Incorrect number of fraction digits in current_time()
> -----------------------------------------------------
>
> Key: SPARK-52656
> URL: https://issues.apache.org/jira/browse/SPARK-52656
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.1.0
> Reporter: Max Gekk
> Assignee: Max Gekk
> Priority: Major
> Labels: pull-request-available
>
> The CURRENT_TIME() function returns incorrect number of digits in the
> fraction part:
> {code:sql}
> spark-sql (default)> SELECT current_time(2);
> 00:01:09.67891
> spark-sql (default)> SELECT current_time(0);
> 00:01:09.685
> spark-sql (default)> SELECT current_time(3);
> 00:01:09.697257
> {code}
> It makes mistake by 3 digits. For instance, current_time(2) must return
> 00:01:09.67 instead of 00:01:09.67891.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]