sunchao opened a new pull request, #7807: URL: https://github.com/apache/datafusion-comet/pull/7807
## Which issue does this PR close? Follow-up to #7730 for the [numeric guard tests](https://github.com/apache/datafusion-comet/pull/7730#discussion_r4743958978) and the [negative-zero logarithm input](https://github.com/apache/datafusion-comet/pull/7730#discussion_r4745900460). ## Rationale for this change Both guards must turn `-0.0` and `+0.0` into NULL and preserve NaN. They differ for negative finite inputs. A negative divisor is valid, while a negative logarithm argument yields NULL. The existing logarithm fixtures exercise positive zero and negative numbers. Negative zero exercises the sign bit at the boundary. ## What changes are included in this PR? - Add Rust tests for the floating-point guards and the decimal divisor guard. - Include `CAST('-0.0' AS DOUBLE)` in the Parquet inputs for `ln`, `log10` and `log2`, so each function reads the signed zero from a column. ## How are these changes tested? The Rust tests check array and scalar results for both float widths, including signed zeros, NaN, NULL and finite values on either side of zero. The decimal cases check that masking zero preserves the other values, precision and scale for Decimal128 and Decimal256. The SQL fixtures compare Comet with Spark, which returns NULL for each logarithm of negative zero. Hosted CI runs both suites. -- 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]
