You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2018/06/12 23:46:00 UTC
[jira] [Commented] (HIVE-19869) Remove double formatting bug
followup of HIVE-19382
[ https://issues.apache.org/jira/browse/HIVE-19869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510396#comment-16510396 ]
Ashutosh Chauhan commented on HIVE-19869:
-----------------------------------------
+1
> 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
> 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)