fx19880617 commented on issue #5704:
URL: 
https://github.com/apache/incubator-pinot/issues/5704#issuecomment-671852467


   We may also want to support this as granular in `datetimeConvertUdf`, so 
that we can take the pushdown from presto side for function: 
`date_trunc`(https://prestodb.io/docs/current/functions/datetime.html).
   
   |Unit | Example Truncated Value|
   |-- | --|
   |second | 2001-08-22 03:04:05.000
   |minute | 2001-08-22 03:04:00.000
   |hour | 2001-08-22 03:00:00.000
   |day | 2001-08-22 00:00:00.000
   |week | 2001-08-20 00:00:00.000
   |month | 2001-08-01 00:00:00.000
   |quarter | 2001-07-01 00:00:00.000
   |year | 2001-01-01 00:00:00.000
   
   ```
   The above examples use the timestamp 2001-08-22 03:04:05.321 as the input.
   
   date_trunc(unit, x) → [same as input]
   Returns x truncated to unit.
   ```
   Currently we are missing `week`/`month`/`quarter`/`year`.


----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to