Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL: Fix the MINUTE_OF_DAY() function that throws exception when used…
… in comparisons (#68783) The `MINUTE_OF_DAY()` extraction function does not have an equivalent expressable using a datetime format pattern. The `MinuteOfDay.dateTimeFormat()` is called during the query translation and throws an exception, but the return value actually does not impact the translated query (binary comparisons with `DateTimeFunction` on one side always turn into a script query). This change fixes the immediate issue raised as part of #67872, add integration tests covering the problem, but leaves the removal of the unnecessary `dateTimeFormat()` function a separate PR.
- Loading branch information