From issues-return-160616-archive-asf-public=cust-asf.ponee.io@hive.apache.org Tue Jun 18 14:04:02 2019 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 0778118077A for ; Tue, 18 Jun 2019 16:04:01 +0200 (CEST) Received: (qmail 59250 invoked by uid 500); 18 Jun 2019 14:04: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 59235 invoked by uid 99); 18 Jun 2019 14:04: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; Tue, 18 Jun 2019 14:04:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 85C3CE2DBE for ; Tue, 18 Jun 2019 14:04:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 46ADE24673 for ; Tue, 18 Jun 2019 14:04:00 +0000 (UTC) Date: Tue, 18 Jun 2019 14:04:00 +0000 (UTC) From: "Laszlo Bodor (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-21835) Unnecessary null checks in org.apache.hadoop.hive.ql.optimizer.StatsOptimizer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-21835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Laszlo Bodor updated HIVE-21835: -------------------------------- Fix Version/s: 4.0.0 > Unnecessary null checks in org.apache.hadoop.hive.ql.optimizer.StatsOptimizer > ----------------------------------------------------------------------------- > > Key: HIVE-21835 > URL: https://issues.apache.org/jira/browse/HIVE-21835 > Project: Hive > Issue Type: Improvement > Reporter: Ivan Suller > Assignee: Ivan Suller > Priority: Minor > Fix For: 4.0.0 > > Attachments: HIVE-21835.1.patch, HIVE-21835.2.patch, HIVE-21835.2.patch > > > There are several null checks in org.apache.hadoop.hive.ql.optimizer.StatsOptimizer after Long.parseLong(...) call. This method returns with a primitive long value, which cannot be null - a null check after this call is redundant. -- This message was sent by Atlassian JIRA (v7.6.3#76005)