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-23269) Unsafe comparing bigints and chars
Date Thu, 23 Apr 2020 10:15:00 GMT

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

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

                Author: ASF GitHub Bot
            Created on: 23/Apr/20 10:14
            Start Date: 23/Apr/20 10:14
    Worklog Time Spent: 10m 
      Work Description: dengzhhu653 opened a new pull request #991:
URL: https://github.com/apache/hive/pull/991


   


----------------------------------------------------------------
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: 426449)
    Remaining Estimate: 0h
            Time Spent: 10m

> Unsafe comparing bigints and chars
> ----------------------------------
>
>                 Key: HIVE-23269
>                 URL: https://issues.apache.org/jira/browse/HIVE-23269
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 4.0.0
>            Reporter: Zhihua Deng
>            Priority: Major
>         Attachments: HIVE-23269.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Comparing bigints and varchars or chars may result to wrong result,  for example:
> CREATE TABLE test_a (appid1 varchar(256),  appid2 char(20));
> INSERT INTO  test_a VALUES ('2882303761517473127', '2882303761517473127'), ('2882303761517473276','2882303761517473276');
> SET hive.strict.checks.type.safety=false;
> SELECT appid1 FROM test_a WHERE appid1 = 2882303761517473127;
> SELECT appid2 FROM test_a WHERE appid2 = 2882303761517473127;‚Äč
> Both queries will output the row: ('2882303761517473276','2882303761517473276')



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

Mime
View raw message