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 "Quanlong Huang (JIRA)" <ji...@apache.org> on 2019/03/26 01:52:00 UTC

[jira] [Updated] (IMPALA-7254) Inconsistent decimal behavior for the IN predicate

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

Quanlong Huang updated IMPALA-7254:
-----------------------------------
    Fix Version/s: Impala 2.13.0

> Inconsistent decimal behavior for the IN predicate
> --------------------------------------------------
>
>                 Key: IMPALA-7254
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7254
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>    Affects Versions: Impala 3.0
>            Reporter: Taras Bobrovytsky
>            Assignee: Fredy Wijaya
>            Priority: Major
>             Fix For: Impala 2.13.0, Impala 3.1.0
>
>
> The following query returns an error:
> {code:java}
> select cast(2 as decimal(38,37)) in (cast(3 as decimal(38,1)), cast(2 as double)){code}
> However, this query succeeds and returns true:
> {code:java}
> select cast(2 as decimal(38,37)) in (cast(2 as double), cast(3 as decimal(38,1))){code}
> The only difference is that the elements in the list are in a different order. This behavior seems strange. Perhaps we should sort the elements before analyzing?



--
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