From issues-return-186942-archive-asf-public=cust-asf.ponee.io@hive.apache.org Thu Apr 23 10:15:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5DD68180669 for ; Thu, 23 Apr 2020 12:15:02 +0200 (CEST) Received: (qmail 42722 invoked by uid 500); 23 Apr 2020 10:15:01 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 42697 invoked by uid 99); 23 Apr 2020 10:15:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2020 10:15:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CCF82E30C8 for ; Thu, 23 Apr 2020 10:15:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 264567805BF for ; Thu, 23 Apr 2020 10:15:00 +0000 (UTC) Date: Thu, 23 Apr 2020 10:15:00 +0000 (UTC) From: "ASF GitHub Bot (Jira)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Work logged] (HIVE-23269) Unsafe comparing bigints and chars MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-23269?focusedWorklogId=3D= 426449&page=3Dcom.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpa= nel#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=20 Work Description: dengzhhu653 opened a new pull request #991: URL: https://github.com/apache/hive/pull/991 =20 ---------------------------------------------------------------- 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=3Dfalse; > SELECT appid1 FROM test_a WHERE appid1 =3D 2882303761517473127; > SELECT appid2 FROM test_a WHERE appid2 =3D 2882303761517473127;=E2=80=8B > Both queries will output the row: ('2882303761517473276','288230376151747= 3276') -- This message was sent by Atlassian Jira (v8.3.4#803005)