cloud-fan commented on a change in pull request #27835: [SPARK-31090] Revert SPARK-25457 "IntegralDivide returns data type of the operands" URL: https://github.com/apache/spark/pull/27835#discussion_r389521240
########## File path: sql/core/src/test/resources/sql-tests/inputs/operators.sql ########## @@ -22,6 +22,16 @@ select 5 / 0; select 5 / null; select null / 5; +-- integral div +select 5 div 2; +select 5 div 0; +select 5 div null; +select null div 5; +select cast(51 as decimal(10, 0)) div cast(2 as decimal(2, 0)); +select cast(5 as decimal(1, 0)) div cast(0 as decimal(2, 0)); +select cast(5 as decimal(1, 0)) div cast(null as decimal(2, 0)); +select cast(null as decimal(1, 0)) div cast(5 as decimal(2, 0)); Review comment: They were already there. They were added when we support decimal in `IntegralDivide` ---------------------------------------------------------------- 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]
