Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 4.0.0, Impala 3.3.0
-
ghx-label-10
Description
[localhost:21000] default> select 'expected 2',count(*) from ax where cast(t as string) = cast('a ' as varchar(10)); +--------------+----------+ | 'expected 2' | count(*) | +--------------+----------+ | expected 2 | 2 | +--------------+----------+ Fetched 1 row(s) in 0.44s [localhost:21000] default> create table chartbl (c char(10)); +-------------------------+ | summary | +-------------------------+ | Table has been created. | +-------------------------+ Fetched 1 row(s) in 0.23s [localhost:21000] default> select * from chartbl where c = cast('test' as varchar(10)); ERROR: SqlCastException: targetType=VARCHAR(*) type=VARCHAR(10)
Also using the functional dataset:
[localhost:21000] functional> select * from chars_tiny where cs = vc; ERROR: SqlCastException: targetType=VARCHAR(*) type=VARCHAR(5)
Attachments
Issue Links
- is caused by
-
IMPALA-7368 Add initial support for DATE type
- Closed
- is duplicated by
-
IMPALA-11321 Cannot compare char to varchar
- Closed