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 2021/06/07 00:19:01 UTC

[jira] [Work logged] (HIVE-24817) "not in" clause returns incorrect data when there is coercion

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

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

                Author: ASF GitHub Bot
            Created on: 07/Jun/21 00:18
            Start Date: 07/Jun/21 00:18
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #2012:
URL: https://github.com/apache/hive/pull/2012#issuecomment-855489227


   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: 607568)
    Time Spent: 2h 50m  (was: 2h 40m)

> "not in" clause returns incorrect data when there is coercion
> -------------------------------------------------------------
>
>                 Key: HIVE-24817
>                 URL: https://issues.apache.org/jira/browse/HIVE-24817
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO
>            Reporter: Steve Carlin
>            Assignee: Steve Carlin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> When the query has a where clause that has an integer column checking against being "not in" a decimal column, the decimal column is being changed to null, causing incorrect results.
> This is a sample query of a failure:
> select count(*) from my_tbl where int_col not in (355.8);
> Since the int_col can never be 355.8, one would expect all the rows to be returned, but it is changing the 355.8 into a null value causing no rows to be returned.



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