beliefer opened a new pull request, #47951: URL: https://github.com/apache/spark/pull/47951
### What changes were proposed in this pull request? This PR propose to improve the DS V2 pushdown framework for `DayOfWeek` and `WeekDay`. ### Why are the changes needed? 1. The DS V2 pushdown framework translate `DayOfWeek` and `WeekDay` by the way adapted to the H2 database. However, many database supports the built-in function `DayOfWeek` and `WeekDay` directly and the behavior is different from H2.The V2 pushdown framework should translate them in a more neutral way. 2. Other database dialect cannot treat `DayOfWeek` and `WeekDay` well without this improvement. ### Does this PR introduce _any_ user-facing change? 'Yes'. I will add a SQL configure for legacy behavior. ### How was this patch tested? GA. ### 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: [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]
