Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C6AB6200CDF for ; Thu, 17 Aug 2017 09:44:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE65616A717; Thu, 17 Aug 2017 07:44:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1619B16A71B for ; Thu, 17 Aug 2017 09:44:04 +0200 (CEST) Received: (qmail 84458 invoked by uid 500); 17 Aug 2017 07:44:04 -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 84354 invoked by uid 99); 17 Aug 2017 07:44:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2017 07:44:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BC75C1800B9 for ; Thu, 17 Aug 2017 07:44:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6ZN2crMXIfXK for ; Thu, 17 Aug 2017 07:44:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 792F95F6C1 for ; Thu, 17 Aug 2017 07:44:01 +0000 (UTC) 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 9812AE0A32 for ; Thu, 17 Aug 2017 07:44: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 3318425381 for ; Thu, 17 Aug 2017 07:44:00 +0000 (UTC) Date: Thu, 17 Aug 2017 07:44:00 +0000 (UTC) From: "Zoltan Haindrich (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-17314) LazySimpleSerializeWrite.writeString() contains if with an empty body MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 17 Aug 2017 07:44:06 -0000 [ https://issues.apache.org/jira/browse/HIVE-17314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130058#comment-16130058 ] Zoltan Haindrich commented on HIVE-17314: ----------------------------------------- Seems like this extra if have been introduced in: https://github.com/apache/hive/commit/d467e172262c23b97e1d55e35798ba530cae5972#diff-b767e13919b57d8131358345ea7192e5R234 Could you upload the patch here as well? +1 > LazySimpleSerializeWrite.writeString() contains if with an empty body > --------------------------------------------------------------------- > > Key: HIVE-17314 > URL: https://issues.apache.org/jira/browse/HIVE-17314 > Project: Hive > Issue Type: Bug > Reporter: Oleg Danilov > Assignee: Oleg Danilov > Priority: Minor > > Looking at the LazySimpleSerializeWrite.java I found odd 'if': > Lines 234-235: > {code:java} > if (v.equals(nullSequenceBytes)) { > } > {code} > Seems like either something is missed there or this 'if' could be dropped out. -- This message was sent by Atlassian JIRA (v6.4.14#64029)