xudong963 commented on a change in pull request #1381:
URL: https://github.com/apache/arrow-datafusion/pull/1381#discussion_r758072164



##########
File path: datafusion/src/physical_plan/datetime_expressions.rs
##########
@@ -203,6 +203,10 @@ fn date_trunc_single(granularity: &str, value: i64) -> 
Result<i64> {
             .and_then(|d| d.with_minute(0))
             .and_then(|d| d.with_hour(0))
             .and_then(|d| d.with_day0(0)),
+        "quarter" => value

Review comment:
       If I understand rightly, this means three months?  So you also need 
`.and_then(|d| d.with_day0(0))`?




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to