Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Done
-
Impala 2.4.0
-
None
-
None
Description
Currently, in Impala, a string quoted with single quotes (such as 'abcd') is treated as a literal value of String type. To use it with char/varchar type, an explicit conversion is needed.
For example, blow query doesn't work:
insert into table tbl (char_col) values ('abcd')
Only below query works:
insert into table tbl (char_col) values ( cast ('abcd' as char(20)))
It does make sense to allow the first query.
Attachments
Issue Links
- is related to
-
IMPALA-10173 Allow implicit casts between numeric and string types when inserting into table
- Resolved
- relates to
-
IMPALA-1333 Missing implicit casts between char/varchar/string.
- Open