[jira] [Updated] (HIVE-16234) Add support for quarter in trunc udf
[ https://issues.apache.org/jira/browse/HIVE-16234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lefty Leverenz updated HIVE-16234: -- Labels: TODOC2.2 (was: ) > Add support for quarter in trunc udf > > > Key: HIVE-16234 > URL: https://issues.apache.org/jira/browse/HIVE-16234 > Project: Hive > Issue Type: Improvement > Components: UDF >Reporter: Deepesh Khandelwal >Assignee: Deepesh Khandelwal > Labels: TODOC2.2 > Fix For: 2.2.0 > > Attachments: HIVE-16234.1.patch > > > 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//YY. > Goal here is to extend support to QUARTER/Q. > Example: > SELECT trunc('2017-03-15', 'Q'); > '2017-01-01' > SELECT trunc('2017-12-31', 'Q'); > '2017-10-01' -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HIVE-16234) Add support for quarter in trunc udf
[ https://issues.apache.org/jira/browse/HIVE-16234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-16234: Resolution: Fixed Fix Version/s: 2.2.0 Status: Resolved (was: Patch Available) Pushed to master. Thanks, Deepesh! > Add support for quarter in trunc udf > > > Key: HIVE-16234 > URL: https://issues.apache.org/jira/browse/HIVE-16234 > Project: Hive > Issue Type: Improvement > Components: UDF >Reporter: Deepesh Khandelwal >Assignee: Deepesh Khandelwal > Fix For: 2.2.0 > > Attachments: HIVE-16234.1.patch > > > 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//YY. > Goal here is to extend support to QUARTER/Q. > Example: > SELECT trunc('2017-03-15', 'Q'); > '2017-01-01' > SELECT trunc('2017-12-31', 'Q'); > '2017-10-01' -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HIVE-16234) Add support for quarter in trunc udf
[ https://issues.apache.org/jira/browse/HIVE-16234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-16234: Status: Patch Available (was: Open) > Add support for quarter in trunc udf > > > Key: HIVE-16234 > URL: https://issues.apache.org/jira/browse/HIVE-16234 > Project: Hive > Issue Type: Improvement > Components: UDF >Reporter: Deepesh Khandelwal >Assignee: Deepesh Khandelwal > Attachments: HIVE-16234.1.patch > > > 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//YY. > Goal here is to extend support to QUARTER/Q. > Example: > SELECT trunc('2017-03-15', 'Q'); > '2017-01-01' > SELECT trunc('2017-12-31', 'Q'); > '2017-10-01' -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (HIVE-16234) Add support for quarter in trunc udf
[ https://issues.apache.org/jira/browse/HIVE-16234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepesh Khandelwal updated HIVE-16234: -- Attachment: HIVE-16234.1.patch Attaching patch for review. Also created a review board, see https://reviews.apache.org/r/57701/ cc. [~ashutoshc] [~jdere] > Add support for quarter in trunc udf > > > Key: HIVE-16234 > URL: https://issues.apache.org/jira/browse/HIVE-16234 > Project: Hive > Issue Type: Improvement > Components: UDF >Reporter: Deepesh Khandelwal >Assignee: Deepesh Khandelwal > Attachments: HIVE-16234.1.patch > > > 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//YY. > Goal here is to extend support to QUARTER/Q. > Example: > SELECT trunc('2017-03-15', 'Q'); > '2017-01-01' > SELECT trunc('2017-12-31', 'Q'); > '2017-10-01' -- This message was sent by Atlassian JIRA (v6.3.15#6346)