You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Taras Bobrovytsky (JIRA)" <ji...@apache.org> on 2018/06/11 21:06:00 UTC

[jira] [Created] (IMPALA-7160) The resulting type of decimal mod is computed incorrectly

Taras Bobrovytsky created IMPALA-7160:
-----------------------------------------

             Summary: The resulting type of decimal mod is computed incorrectly
                 Key: IMPALA-7160
                 URL: https://issues.apache.org/jira/browse/IMPALA-7160
             Project: IMPALA
          Issue Type: Task
          Components: Frontend
    Affects Versions: Impala 3.0
            Reporter: Taras Bobrovytsky


The following two expressions should return the same type, but they do not.
This returns a decimal(4,1):
{code}mod(9.9, 3){code}
This one returns a decimal(2,1):
{code}9.9 % 3{code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org