Description
Native reimplementations of Hive functions no longer have the same type-coercion behavior as they would if executed via Hive. As Michael Armbrust points out, queries like SELECT SQRT("2") FROM src LIMIT 1 succeed in Hive but fail if SQRT is implemented natively.
Spark SQL should have Hive-compatible type coercions for arguments to natively-implemented functions.
Attachments
Issue Links
- duplicates
-
SPARK-8947 Improve expression type coercion, casting & checking
- Resolved
- is related to
-
SPARK-4867 UDF clean up
- Resolved
- links to