Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C7CE173C2 for ; Sun, 15 Mar 2015 22:43:38 +0000 (UTC) Received: (qmail 84927 invoked by uid 500); 15 Mar 2015 22:43:38 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 84894 invoked by uid 500); 15 Mar 2015 22:43:38 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 84881 invoked by uid 99); 15 Mar 2015 22:43:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2015 22:43:38 +0000 Date: Sun, 15 Mar 2015 22:43:38 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-2464) JDBC : ResultSet.wasNull always returns false for all datatypes 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/DRILL-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14362603#comment-14362603 ] Rahul Challapalli commented on DRILL-2464: ------------------------------------------ Since drill cannot read null values from text files, I tried to read them hive tables. Even in that case wasNull returned false. For varchar drill is returning an empty string for null. > JDBC : ResultSet.wasNull always returns false for all datatypes > --------------------------------------------------------------- > > Key: DRILL-2464 > URL: https://issues.apache.org/jira/browse/DRILL-2464 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Reporter: Rahul Challapalli > Assignee: Daniel Barclay (Drill) > Attachments: fewtypes_null.parquet > > > git.commit.id.abbrev=7b4c887 > I attached a parquet file which has nulls in it. > {code} > while (rs.next()) { > rs.getLong(1); > if (rs.wasNull()) { > // DRILL does not come here even when the column value is null > } > } > {code} > I am not entirely sure if this is a duplicate to DRILL-2136. But here I have seen this happen for all data types. -- This message was sent by Atlassian JIRA (v6.3.4#6332)