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

ASF subversion and git services commented on IMPALA-15264:
----------------------------------------------------------

Commit eda9a87af351110ea3fa366098aabbb3ce443565 in impala's branch 
refs/heads/master from Steve Carlin
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=eda9a87af ]

IMPALA-15264: DCEIL returns wrong datatype.

DCEIL should always return a decimal datatype when its operand
is a decimal, , similar to DFLOOR.
Before this commit, dceil(double) was returning a double.

Testing: added test to exprs.test

Change-Id: I42be103dcf206c5af467fc2bd08cfdd5c62fe7c2
Reviewed-on: http://gerrit.cloudera.org:8080/24696
Reviewed-by: Joe McDonnell <[email protected]>
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Steve Carlin <[email protected]>


> dfloor returns wrong datatype
> -----------------------------
>
>                 Key: IMPALA-15264
>                 URL: https://issues.apache.org/jira/browse/IMPALA-15264
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Steve Carlin
>            Priority: Major
>
> The dfloor function return type is inconsistent with the dceil function 
> return type:
> create table floor_test2 as select dfloor(3.2), dceil(3.2);
> describe floor_test2;
> Query: describe floor_test2
> +------+--------+---------+
> | name | type   | comment |
> +------+--------+---------+
> | _c0  | decimal(2,0) |         |
> | _c1  | double |         |
> +------+--------+---------+
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to