You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2017/02/27 19:41:45 UTC
[jira] [Updated] (CALCITE-1659) Simplifying CAST(characterLiteral
as TIMESTAMP) should round the sub-second fraction
[ https://issues.apache.org/jira/browse/CALCITE-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde updated CALCITE-1659:
---------------------------------
Summary: Simplifying CAST(characterLiteral as TIMESTAMP) should round the sub-second fraction (was: Timestamps are loosing sub-second parts after Calcite literal constant reduction)
> Simplifying CAST(characterLiteral as TIMESTAMP) should round the sub-second fraction
> ------------------------------------------------------------------------------------
>
> Key: CALCITE-1659
> URL: https://issues.apache.org/jira/browse/CALCITE-1659
> Project: Calcite
> Issue Type: Bug
> Reporter: Remus Rusanu
> Assignee: Julian Hyde
> Fix For: 1.12.0
>
>
> {noformat}
> select cast("1970-12-31 15:59:58.174" as TIMESTAMP) from src limit 1;
> {noformat}
> yields {{1970-12-31 15:59:58}} if CBO is enabled in Hive. {{ZonelessTimestamp.toString()}} contains a truncation 0-19 (ie. removes sub-second part from string representation).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)