[ 
https://issues.apache.org/jira/browse/HIVE-19869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ashutosh Chauhan updated HIVE-19869:
------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.0
           Status: Resolved  (was: Patch Available)

Pushed to master and branch-3. Thanks, Slim!

> Remove double formatting bug followup of HIVE-19382
> ---------------------------------------------------
>
>                 Key: HIVE-19869
>                 URL: https://issues.apache.org/jira/browse/HIVE-19869
>             Project: Hive
>          Issue Type: Bug
>            Reporter: slim bouguerra
>            Assignee: slim bouguerra
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: HIVE-19869.patch
>
>
> HIVE-19382 has a minor bug that happens when users provide custom format as 
> part of FROM_UNIXTIMESTAMP function.
> Here is an example query
> {code}
> SELECT SUM(`ssb_druid_100`.`lo_revenue`) AS `sum_lo_revenue_ok`,
> CAST(FROM_UNIXTIME(UNIX_TIMESTAMP(CAST(`ssb_druid_100`.`__time` AS 
> TIMESTAMP)), 'yyyy-MM-dd HH:00:00') AS TIMESTAMP) AS `thr___time_ok`
>  FROM `druid_ssb`.`ssb_druid_100` `ssb_druid_100`
> GROUP BY CAST(FROM_UNIXTIME(UNIX_TIMESTAMP(CAST(`ssb_druid_100`.`__time` AS 
> TIMESTAMP)), 'yyyy-MM-dd HH:00:00') AS TIMESTAMP);
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to