You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "MinJi Kim (JIRA)" <ji...@apache.org> on 2016/07/11 21:30:11 UTC
[jira] [Commented] (CALCITE-1312) timestamp_add(UNIT, DATE) should
return timestamp if the unit added is less than a date
[ https://issues.apache.org/jira/browse/CALCITE-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15371677#comment-15371677 ]
MinJi Kim commented on CALCITE-1312:
------------------------------------
https://github.com/apache/calcite/pull/253
> timestamp_add(UNIT, DATE) should return timestamp if the unit added is less than a date
> ---------------------------------------------------------------------------------------
>
> Key: CALCITE-1312
> URL: https://issues.apache.org/jira/browse/CALCITE-1312
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: MinJi Kim
> Assignee: Julian Hyde
>
> timestamp_add("MINUTE", 1, date '2016-06-15') returns 2016-06-15 since it returns a date and therefore truncates the minute informtion. timestamp_add should return timestamp instead of date for units less than date.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)