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 06BCC200B23 for ; Sun, 19 Jun 2016 20:32:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 05653160A64; Sun, 19 Jun 2016 18:32:07 +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 72FA3160A4E for ; Sun, 19 Jun 2016 20:32:06 +0200 (CEST) Received: (qmail 24958 invoked by uid 500); 19 Jun 2016 18:32:05 -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 24944 invoked by uid 99); 19 Jun 2016 18:32:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Jun 2016 18:32:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5C5D42C0451 for ; Sun, 19 Jun 2016 18:32:05 +0000 (UTC) Date: Sun, 19 Jun 2016 18:32:05 +0000 (UTC) From: =?utf-8?Q?Sergio_Pe=C3=B1a_=28JIRA=29?= To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-14055) directSql - getting the number of partitions is broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 19 Jun 2016 18:32:07 -0000 [ https://issues.apache.org/jira/browse/HIVE-14055?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1533= 8672#comment-15338672 ]=20 Sergio Pe=C3=B1a commented on HIVE-14055: ------------------------------------ [~sershe] what if instead of return null we return a -1?=20 I like to avoid null values in case a future developer uses the method with= out validating the null causing NPE exceptions. > directSql - getting the number of partitions is broken > ------------------------------------------------------ > > Key: HIVE-14055 > URL: https://issues.apache.org/jira/browse/HIVE-14055 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Attachments: HIVE-14055.patch > > > Noticed while looking at something else. If the filter cannot be pushed d= own it just returns 0 -- This message was sent by Atlassian JIRA (v6.3.4#6332)