Evan Chan created ARROW-12391: --------------------------------- Summary: [Rust][DataFusion] Implement date_trunc() function Key: ARROW-12391 URL: https://issues.apache.org/jira/browse/ARROW-12391 Project: Apache Arrow Issue Type: New Feature Components: Rust - DataFusion Affects Versions: 3.0.0 Reporter: Evan Chan Fix For: 4.0.0
Implement the date_trunc function, as described in this PostGres manual: [https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC] This would allow for the following use cases to be solved: * casting of timestamps to other resolutions, such as millis and micros * rounding dates/timestamps It also allows the user to explicitly allow the truncation of timestamp precision. -- This message was sent by Atlassian Jira (v8.3.4#803005)