CODERNSINGH commented on PR #60298: URL: https://github.com/apache/spark/pull/60298#issuecomment-6791839067
Thanks @raviston, good catch. Agreed, I left `DecimalType` (and `decimal.Decimal` scalars) out of `_transform_for_numeric_comparison` in c3859699, so decimal ordering comparisons stay unsupported in both directions as on master: `bool < decimal` raises `AnalysisException` and `decimal > bool` raises `TypeError` from `DecimalOps`. This also avoids the `NUMERIC_VALUE_OUT_OF_RANGE` failure for `decimal(2,2)`. I added the `decimal` column to `test_compare_with_numeric` to pin this down in both directions. Thanks also for checking the `float_nan` case. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
