Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 0.5
-
None
-
None
Description
Assume tbl1 has a single string-valued column. Then:
INSERT INTO tbl1 SELECT NULL FROM tbl2 LIMIT 1
should work, but it doesn't because the NULL literal is inferred as a boolean type, which is not compatible with a string target.
See {{NullLiteral.java}:
public NullLiteral() { // TODO: should NULL be a type? type = PrimitiveType.BOOLEAN; }
Attachments
Issue Links
- relates to
-
IMPALA-76 operands are not comparable: NULL = 'a'
- Resolved