[ 
https://issues.apache.org/jira/browse/CALCITE-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762529#comment-17762529
 ] 

Mihai Budiu commented on CALCITE-3530:
--------------------------------------

This is related to https://issues.apache.org/jira/browse/CALCITE-5919?filter=-2
The solution is probably to use a Decimal data type, that would work for 
arbitrary precision.

> TIMESTAMPADD/TIMESTAMPDIFF with microsecond/nanosecond unit lost precision
> --------------------------------------------------------------------------
>
>                 Key: CALCITE-3530
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3530
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Zhenghua Gao
>            Priority: Minor
>
> Since the TimestampAddConvertlet and TimestampDiffConvertlet  tread TIMESTAMP 
> as long (with millisecond precision), they lost precision even if the 
> downstream can support microsecond or nanosecond. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to