tajo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hyoungjunkim (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TAJO-350) Implement round, floor, ceil
Date Sun, 01 Dec 2013 07:23:35 GMT

     [ https://issues.apache.org/jira/browse/TAJO-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

hyoungjunkim updated TAJO-350:
------------------------------

    Attachment: TAJO-350.patch

I implemented round, floor, ceil.
I made package named math in org.apache.tajo.engine.function package.
Testcase is in TestMethFunction class. 
Please review this patch.

> Implement round, floor, ceil
> ----------------------------
>
>                 Key: TAJO-350
>                 URL: https://issues.apache.org/jira/browse/TAJO-350
>             Project: Tajo
>          Issue Type: New Feature
>            Reporter: hyoungjunkim
>            Assignee: hyoungjunkim
>            Priority: Minor
>         Attachments: TAJO-350.patch
>
>
> h3. Function Definition
> {code}
> INT8 round(value FLOAT8)
> INT8 floor(value FLOAT8)
> INT8 ceil(value FLOAT8)
> {code}
> h3. Example
> round
> {code}
> select round(5.1) => 5
> select round(5.5) => 6
> select round(5.6) => 6
> select round(-5.1) => -5
> select round(-5.5) => -6
> select round(-5.6) => -6
> {code}
> floor
> {code}
> select round(5.1) => 5
> select round(5.5) => 5
> select round(-5.1) => -6
> select round(-5.6) => -6
> {code}
> ceil
> {code}
> select round(5.1) => 6
> select round(5.5) => 6
> select round(-5.1) => -5
> select round(-5.6) => -5
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message