drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanifi Gunes (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-708) TRUNC(n1) function returns a decimal instead of int
Date Fri, 30 Jan 2015 06:26:34 GMT

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

Hanifi Gunes commented on DRILL-708:
------------------------------------

[~yash360@gmail.com] Any update on this? Also can you look at *round* function as well?

> TRUNC(n1) function returns a decimal instead of int
> ---------------------------------------------------
>
>                 Key: DRILL-708
>                 URL: https://issues.apache.org/jira/browse/DRILL-708
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: m1
>            Reporter: Krystal
>            Assignee: Yash Sharma
>            Priority: Critical
>             Fix For: 1.0.0
>
>         Attachments: DRILL-708.patch
>
>
> The TRUNC(n1) function should return the integer part of n1 as an int.  In drill, however,
the value returned is a decimal.  For example,
> select trunc(15.79) from voter where voter_id=10;
> returns 15.0
> The other database platforms return an int value of 15.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message