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 2018/07/28 00:39:00 UTC
[jira] [Commented] (ASTERIXDB-2423) Division by 0 should return
NULL for all numeric types
[ https://issues.apache.org/jira/browse/ASTERIXDB-2423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560519#comment-16560519 ]
ASF subversion and git services commented on ASTERIXDB-2423:
------------------------------------------------------------
Commit 6b1b52c1f4eb5a1e6abe7f82af3da3a45e8ea3ac in asterixdb's branch refs/heads/master from [~dlychagin-cb]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=6b1b52c ]
[ASTERIXDB-2423][RT] Division by zero should return NULL
- user model changes: yes
- storage format changes: no
- interface changes: no
Details:
- Make DIV, /, MOD operators return NULL if the divisor is 0
- Add test case for if_inf() function
Change-Id: If2a45e842b840f721435b0715945a209e55b9dd4
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2813
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>
> Division by 0 should return NULL for all numeric types
> ------------------------------------------------------
>
> Key: ASTERIXDB-2423
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2423
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: RT - Runtime
> Reporter: Dmitry Lychagin
> Assignee: Dmitry Lychagin
> Priority: Minor
>
> Currently division by 0 returns INF, while DIV 0 fails for integer types and returns INF in other cases. We should make both return NULL for all types. Also applies to MOD operation when the divisor is 0.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)