Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Done
-
None
-
ghx-label-1
Description
Impala is somewhat stricter than other engines such as Hive when it comes into implicit casts. This avoids a lot of ambiguity and edge cases with complex SQL, but we could consider loosening it for simple cases like inserting into a table where the meaning/intent is pretty straightforward.
Repro
CREATE TABLE iobt ( c0 FLOAT ) ;
INSERT INTO iobt(c0) VALUES ('0'), (1562998803);
Error
AnalysisException: Incompatible return types 'STRING' and 'INT' of exprs ''0'' and '1562998803'.
Attachments
Issue Links
- causes
-
IMPALA-12285 Type mismatch in set operations with ALLOW_UNSAFE_CASTS enabled
- Resolved
-
IMPALA-12386 NullExpr substitution failure with unsafe casts enabled
- Resolved
-
IMPALA-12384 Restore NullLiteral's uncheckedCastTo function signature
- Resolved
- is related to
-
IMPALA-12386 NullExpr substitution failure with unsafe casts enabled
- Resolved
- relates to
-
IMPALA-3217 Allow text quoted by single quotes be treated as a literal value of char/varchar
- Resolved