You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2017/10/28 18:10:00 UTC
[jira] [Resolved] (HIVE-17413) predicate involving CAST affects
value returned by the SELECT statement
[ https://issues.apache.org/jira/browse/HIVE-17413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesus Camacho Rodriguez resolved HIVE-17413.
--------------------------------------------
Resolution: Not A Problem
Fix Version/s: 3.0.0
Target Version/s: (was: 3.0.0)
> predicate involving CAST affects value returned by the SELECT statement
> -----------------------------------------------------------------------
>
> Key: HIVE-17413
> URL: https://issues.apache.org/jira/browse/HIVE-17413
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: 1.2.1
> Reporter: Jim Hopper
> Priority: Critical
> Labels: timestamp
> Fix For: 3.0.0
>
>
> steps to reproduce:
> {code}
> create table t stored as orc as
> select cast('2017-08-29 00:01:26' as timestamp) as ts;
> {code}
> {code}
> select ts from t;
> {code}
> {code}
> ts
> 2017-08-29 00:01:26
> {code}
> {code}
> select ts from t where cast(ts as date) = '2017-08-29';
> {code}
> {code}
> ts
> 2017-08-29 00:00:00
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)