You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/26 12:03:00 UTC

[jira] [Updated] (HIVE-24435) Vectorized unix_timestamp is inconsistent with non-vectorized counterpart

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

ASF GitHub Bot updated HIVE-24435:
----------------------------------
    Labels: pull-request-available  (was: )

> Vectorized unix_timestamp is inconsistent with non-vectorized counterpart
> -------------------------------------------------------------------------
>
>                 Key: HIVE-24435
>                 URL: https://issues.apache.org/jira/browse/HIVE-24435
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code}
> create table t (d string);
> insert into t values('2020-11-16 22:18:40 UTC');
> select
>   '>' || d || '<' , unix_timestamp(d), from_unixtime(unix_timestamp(d)), to_date(from_unixtime(unix_timestamp(d)))
> from t
> ;
> set hive.fetch.task.conversion=none;
> select
>   '>' || d || '<' , unix_timestamp(d), from_unixtime(unix_timestamp(d)), to_date(from_unixtime(unix_timestamp(d)))
> from t
> ;
> {code}
> results:
> {code}
> -- std udf:
> >2020-11-16 22:18:40 UTC<       1605593920      2020-11-16 22:18:40     2020-11-16
> -- vectorized udf
> >2020-11-16 22:18:40 UTC<       NULL    NULL    NULL
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)