You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/06/02 01:37:01 UTC
[jira] [Updated] (DRILL-818) date_add returns only date for date +
or - time
[ https://issues.apache.org/jira/browse/DRILL-818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mehant Baid updated DRILL-818:
------------------------------
Attachment: DRILL-818.patch
We were returning Date type while adding Date + Interval, fixed functions to return TimeStamp instead.
> date_add returns only date for date + or - time
> -----------------------------------------------
>
> Key: DRILL-818
> URL: https://issues.apache.org/jira/browse/DRILL-818
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Reporter: Krystal
> Assignee: Mehant Baid
> Attachments: DRILL-818.patch
>
>
> git.commit.id.abbrev=2fad21d
> select date_add(to_date('05 Dec 2013', 'dd MMM YYYY'), interval '1 10:20:30' DAY to second) from voter where voter_id=10
> jdbc returns 2013-12-06
> From sqlline for the same query, it returns expected result of 2013-12-06T10:20:30.000-08:00
--
This message was sent by Atlassian JIRA
(v6.2#6252)