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/05/04 11:05:00 UTC
[jira] [Commented] (IMPALA-12042) Invalid casts in set operations calculation
[ https://issues.apache.org/jira/browse/IMPALA-12042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17719270#comment-17719270 ]
Peter Rozsa commented on IMPALA-12042:
--------------------------------------
IN predicate and BETWEEN predicate is affected also:
BETWEEN:
{code:java}
select 1.0 between 2 and true {code}
IN:
{code:java}
select 1.0 in (true, 10, 1.0) {code}
> 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
> Assignee: 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