[
https://issues.apache.org/jira/browse/IMPALA-11321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Smith closed IMPALA-11321.
----------------------------------
Resolution: Duplicate
> Cannot compare char to varchar
> ------------------------------
>
> Key: IMPALA-11321
> URL: https://issues.apache.org/jira/browse/IMPALA-11321
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 4.0.0
> Reporter: Michael Smith
> Priority: Major
>
> Running
> {code}
> create table varchar_1 (s varchar(1));
> create table char_1 (c char(1));
> insert into varchar_1 values (cast('a' as varchar(1)));
> insert into char_1 values (cast('a' as char(1)));
> select * from varchar_1 vc, char_1 ch where vc.s=ch.c;
> {code}
> results in
> {code}
> ERROR: SqlCastException: targetType=VARCHAR(*) type=VARCHAR(10)
> {code}
> Other SQL implementations allow this, and the comparison semantics seem clear.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]