hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepesh Khandelwal (JIRA)" <>
Subject [jira] [Created] (HIVE-16234) Add support for quarter in trunc udf
Date Thu, 16 Mar 2017 20:14:41 GMT
Deepesh Khandelwal created HIVE-16234:

             Summary: Add support for quarter in trunc udf
                 Key: HIVE-16234
             Project: Hive
          Issue Type: Improvement
          Components: UDF
            Reporter: Deepesh Khandelwal
            Assignee: Deepesh Khandelwal

Hive has a Date function trunc(string date, string format) that returns date truncated to
the unit specified by the format. Supported formats: MONTH/MON/MM, YEAR/YYYY/YY.
Goal here is to extend support to QUARTER/Q.
SELECT trunc('2017-03-15', 'Q');
SELECT trunc('2017-12-31', 'Q');

This message was sent by Atlassian JIRA

View raw message