wangyum opened a new pull request, #40743: URL: https://github.com/apache/spark/pull/40743
### What changes were proposed in this pull request? This PR excludes `EqualNullSafe` when unwrapping date type to timestamp type. This is because the unwrapped expression contains a UDF, which cannot pushed down to the data source: ``` EqualNullSafe(Cast(ts, DateType), date) -> If(IsNull(ts), FalseLiteral, And(GreaterThanOrEqual(ts, Cast(date, TimestampType)), LessThan(ts, Cast(date + 1, TimestampType)))) ``` ### Why are the changes needed? Fix bug. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Update existing unit test. -- 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]
