tanclary opened a new pull request, #3125: URL: https://github.com/apache/calcite/pull/3125
The `EXTRACT()` function currently does not accept time frames (user-defined, ISOWEEK, WEEK(WEEKDAY), etc). This PR adds support for `ISOWEEK` and `WEEK(WEEKDAY)` by adding a customDateExtract method, similar to `customDateDiff` or `customDateAdd`. This implementation utilizes `floorDate()` and `diffDate()` in the `TimeFrameSet` class. As always, I would appreciate any comments and suggestions on how I could improve this or expand it to include other time frames (such as user-defined custom time frames). -- 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]
