Description
This is a follow up of issue SPARK-15776
Problem:
For Integer divide operator div:
scala> spark.sql("select 6 div 3").explain(true) ... == Analyzed Logical Plan == CAST((6 / 3) AS BIGINT): bigint Project [cast((cast(6 as double) / cast(3 as double)) as bigint) AS CAST((6 / 3) AS BIGINT)#5L] +- OneRowRelation$ ...
For performance reason, we should not do unnecessary cast cast(xx as double)
Attachments
Issue Links
- is related to
-
SPARK-28395 Division operator support integral division
- Resolved
- links to