You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Taras Bobrovytsky (JIRA)" <ji...@apache.org> on 2017/10/25 03:07:00 UTC

[jira] [Resolved] (IMPALA-5018) DECIMAL V2: Error on decimal divide by 0

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

Taras Bobrovytsky resolved IMPALA-5018.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 2.11.0

{code}
commit 5ebea0ec4db9a0b954988975b4b7c02971a780a0
Author: Taras Bobrovytsky <tb...@cloudera.com>
Date:   Thu Oct 19 13:43:14 2017 -0700

    IMPALA-5018: Error on decimal modulo or divide by zero
    
    Before this patch, decimal operations would never produce an error.
    Division by and modulo zero would result in a NULL.
    
    In this patch, we change this behavior so that we raise an error
    instead of returning a NULL. We also modify the format of the decimal
    expr tests format to also include an error field.
    
    Testing:
    - Added several expr and end to end tests.
    
    Change-Id: If7a7131e657fcdd293ade78d62f851dac0f1e3eb
    Reviewed-on: http://gerrit.cloudera.org:8080/8344
    Reviewed-by: Dan Hecht <dh...@cloudera.com>
    Tested-by: Impala Public Jenkins
{code}

> DECIMAL V2: Error on decimal divide by 0
> ----------------------------------------
>
>                 Key: IMPALA-5018
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5018
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 2.0
>            Reporter: Dan Hecht
>            Assignee: Taras Bobrovytsky
>             Fix For: Impala 2.11.0
>
>
> Currently, decimal divide by 0 returns NULL.  In decimal v2 we should raise an error instead.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)