You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/06/12 21:54:00 UTC

[jira] [Commented] (ASTERIXDB-2584) Allow optional parameter for round() to specify round digit

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

ASF subversion and git services commented on ASTERIXDB-2584:
------------------------------------------------------------

Commit f387fe24c21d537bca9913815f33466ec8b2520f in asterixdb's branch refs/heads/master from Hussain Towaileb
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=f387fe2 ]

[ASTERIXDB-2584][FUN] Support rounding digit for round()

- user model changes: yes
  - user can pass optional 2nd argument to round() function
  to specify the digit to round to.
- storage format changes: no
- interface changes: no

Details:
- Added new descriptor for 2-arguments version of round().
- Converted evaluator class to named class, now used  by both
round() descriptors.
- Added test cases for 2-arguments version and invalid cases.

Change-Id: Ibdde2745e8bc440556e45ed07262eb33327f842b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3433
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Hussain Towaileb <hu...@gmail.com>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>


> Allow optional parameter for round() to specify round digit
> -----------------------------------------------------------
>
>                 Key: ASTERIXDB-2584
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2584
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: FUN - Functions
>    Affects Versions: 0.9.4
>            Reporter: Hussain Towaileb
>            Assignee: Hussain Towaileb
>            Priority: Major
>             Fix For: 0.9.5
>
>
> Allow optional parameter for the round() function to specify the rounding digits. Digits are counted starting from the right of the decimal point. Negative values count to the left of the decimal point.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)