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 "Peter Rozsa (Jira)" <ji...@apache.org> on 2023/04/05 07:47:00 UTC

[jira] [Updated] (IMPALA-12042) Invalid casts in set operations calculation

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

Peter Rozsa updated IMPALA-12042:
---------------------------------
    Description: 
Invalid implicit casts are produced when a set operation contains transitive compatibility, for example: 
{code:java}
values (true), (123), (111.0){code}
 where boolean(true) is compatible with tinyint(123) and tinyint is compatible with decimal(111.0) but boolean is not compatible with decimal nonetheless 'castToSetOpCompatibleTypes' produces decimal as a compatible type.

 

If the condition described above exists, FE fails with 
{code:java}
IllegalStateException: cast BOOLEAN to DECIMAL(4,1){code}

  was:
Invalid implicit casts are produced when a set operation contains transitive compatibility, for example: ```values (true), (123), (111.0)``` where boolean(true) is compatible with tinyint(123) and tinyint is compatible with decimal(111.0) but boolean is not compatible with decimal nonetheless 'castToSetOpCompatibleTypes' produces decimal as a compatible type.

If the condition described above exists, FE fails with ```IllegalStateException: cast BOOLEAN to DECIMAL(4,1)```


> Invalid casts in set operations calculation
> -------------------------------------------
>
>                 Key: IMPALA-12042
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12042
>             Project: IMPALA
>          Issue Type: Bug
>          Components: fe
>    Affects Versions: Impala 4.3.0
>            Reporter: Peter Rozsa
>            Priority: Major
>
> Invalid implicit casts are produced when a set operation contains transitive compatibility, for example: 
> {code:java}
> values (true), (123), (111.0){code}
>  where boolean(true) is compatible with tinyint(123) and tinyint is compatible with decimal(111.0) but boolean is not compatible with decimal nonetheless 'castToSetOpCompatibleTypes' produces decimal as a compatible type.
>  
> If the condition described above exists, FE fails with 
> {code:java}
> IllegalStateException: cast BOOLEAN to DECIMAL(4,1){code}



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

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