Upcast date + duration
and date - duration
operations to datetime
#20397
Labels
A-temporal
Area: date/time functionality
enhancement
New feature or an improvement of an existing feature
Description
It seems to be generally accepted in databases that
date + duration
ordate - duration
should return a datetime (or timestamp).I have tested BigQuery, DuckDB and PostgreSQL and found them all to follow this.
This feature request is to implement the same in Polars.
I'm unsure whether this is best categorised as a bug fix due to silent loss of precision when (for example) adding 1 hour to a date (as below), or a (potentially breaking) feature.
The text was updated successfully, but these errors were encountered: