xinrong-meng opened a new pull request, #52255: URL: https://github.com/apache/spark/pull/52255
### What changes were proposed in this pull request? Disallow `%` between Decimal and float under ANSI pandas: ```py >>> pdf['decimal'] % 0.1 Traceback (most recent call last): ... TypeError: unsupported operand type(s) for %: 'decimal.Decimal' and 'float' ``` pandas on spark before: ```py >>> psdf['decimal'] % 0.1 0 0.1 1 0.1 2 0.1 Name: decimal, dtype: float64 ``` pandas on spark after: ```py >>> psdf['decimal'] % 0.1 Traceback (most recent call last): ... TypeError: Modulo can not be applied to given types. ``` ### Why are the changes needed? Part of https://issues.apache.org/jira/browse/SPARK-53389 ### Does this PR introduce _any_ user-facing change? No, the feature is not released yet ### How was this patch tested? Unit tests ### Was this patch authored or co-authored using generative AI tooling? No -- 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. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org