ayemjay opened a new issue, #17111:
URL: https://github.com/apache/datafusion/issues/17111
### Is your feature request related to a problem or challenge?
Currently, DataFusion’s `date_part('dow', ...)` returns the day of week with
Sunday as 0.
For many use cases, e.g. ISO 8601 compliance, it is desirable to have Monday
as 0 and Sunday as 6.
PostgreSQL already support this via `isodow` in `date_part`.
### Describe the solution you'd like
Add support for `date_part('isodow', ...)` to DataFusion.
This would replicate the existing `dow` implementation but align with the
ISO 8601 definition of day-of-week where Monday is first day of week.
`arrow-rs` already supports `isodow`, so this should primarily involve
wiring up that functionality within DataFusion.
### Describe alternatives you've considered
Computing isodow manually in queries using dow and conditional expressions.
### Additional context
_No response_
--
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]