hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-17038) invalid result when CAST-ing to DATE
Date Tue, 16 Jun 2020 16:57:02 GMT

     [ https://issues.apache.org/jira/browse/HIVE-17038?focusedWorklogId=446726&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-446726
]

ASF GitHub Bot logged work on HIVE-17038:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Jun/20 16:56
            Start Date: 16/Jun/20 16:56
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #204:
URL: https://github.com/apache/hive/pull/204#issuecomment-644888107


   This pull request has been automatically marked as stale because it has not had recent
activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 446726)
    Remaining Estimate: 0h
            Time Spent: 10m

> invalid result when CAST-ing to DATE
> ------------------------------------
>
>                 Key: HIVE-17038
>                 URL: https://issues.apache.org/jira/browse/HIVE-17038
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, Hive
>    Affects Versions: 1.2.1
>            Reporter: Jim Hopper
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> when casting incorrect date literals to DATE data type hive returns wrong values instead
of NULL.
> {code}
> SELECT CAST('2017-02-31' AS DATE);
> SELECT CAST('2017-04-31' AS DATE);
> {code}
> Some examples below where it really can produce weird results:
> {code}
> select *
>   from (
> select cast('2017-07-01' as date) as dt
> ) as t
> where t.dt = '2017-06-31';
> select *
>   from (
> select cast('2017-07-01' as date) as dt
> ) as t
> where t.dt = cast('2017-06-31' as date);
> {code}



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

Mime
View raw message