cloud-fan commented on issue #25136: [SPARK-28322][SQL] Add support to Decimal type for integral divide URL: https://github.com/apache/spark/pull/25136#issuecomment-522567563 Well, we can say this is a new feature if you think "behavior change" is too strong. I don't like the statement that "MySQL, Oracle and Postgres support it, so Spark should support it as well". I want to see a story that drives this feature request. In Spark, we have `/` and `div`. `/` is for fractional division and `div` is for integral division. I think this is a good story. If we make `div` support decimal, then we create confusion: what operator users should pick if they want to divide 2 decimals? For example, "`div` should just be an alias of `/`" is also a good story to me, if that's what happened in MySQL, Oracle and Postgres.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
