org.apache.spark.sql.catalyst.analysis.HiveTypeCoercion
When encountering a cast from a string representing a valid fractional number to an integral type the jvm will throw a java.lang.NumberFormatException. Hive, in contrast, returns the truncated version of this number.
java.lang.NumberFormatException
Name for this rule, automatically inferred based on class name.
When encountering a cast from a string representing a valid fractional number to an integral type the jvm will throw a
java.lang.NumberFormatException
. Hive, in contrast, returns the truncated version of this number.