[SPARK-2659][SQL] Fix division semantics for hive