Return-Path: X-Original-To: apmail-kudu-user-archive@minotaur.apache.org Delivered-To: apmail-kudu-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A0F3F18A88 for ; Wed, 6 Jan 2016 17:38:51 +0000 (UTC) Received: (qmail 84900 invoked by uid 500); 6 Jan 2016 17:38:51 -0000 Delivered-To: apmail-kudu-user-archive@kudu.apache.org Received: (qmail 84866 invoked by uid 500); 6 Jan 2016 17:38:51 -0000 Mailing-List: contact user-help@kudu.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@kudu.incubator.apache.org Delivered-To: mailing list user@kudu.incubator.apache.org Received: (qmail 84847 invoked by uid 99); 6 Jan 2016 17:38:51 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 17:38:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 05B52C15BD; Wed, 6 Jan 2016 17:38:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zIamPhB6YVcj; Wed, 6 Jan 2016 17:38:46 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 7BA6720515; Wed, 6 Jan 2016 17:38:46 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id l65so67761659wmf.1; Wed, 06 Jan 2016 09:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=F1A1C93t5zTB9O9NjsFrYpo/NMCCfC06Bxv4i3qQ9iM=; b=PFDatIVReqPEAg3ySUOnX6Gfo0SXAIMckgIkm8pcQm5FrhsQzRLBEZFK54OVOdaOfd 8UFH1DgLSzSQKSLLq2rUjFGgQUysi69Y8Ne7vVAUPTn8J5iYDCiP8QzZKNci6+acVn5O HLc7+3eBWpafB1kbVwvMPKr8l2i3Oi5WMF4Qd48rFpWdnG/4Imypyd6xZVErCTkr/s/I bNtloRNB/HJwjW+VZHn8kmo2iMBf3JWO2kbbjZRBAJibA9kumZeflWNCmMg/8JSCpwIy /e0h1VQlxiARWix74EGO9aVLEeWGCt56ODGoKphFQd1GycaBHX84Ni8cdjizqyeWY7Wr lD1g== MIME-Version: 1.0 X-Received: by 10.28.98.133 with SMTP id w127mr11183258wmb.4.1452101926241; Wed, 06 Jan 2016 09:38:46 -0800 (PST) Received: by 10.194.72.7 with HTTP; Wed, 6 Jan 2016 09:38:46 -0800 (PST) Date: Wed, 6 Jan 2016 18:38:46 +0100 Message-ID: Subject: Issue using Nullable fields with Java Client From: =?UTF-8?Q?Renato_Marroqu=C3=ADn_Mogrovejo?= To: user@kudu.incubator.apache.org, dev@kudu.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1148d8527dcfc90528add355 --001a1148d8527dcfc90528add355 Content-Type: text/plain; charset=UTF-8 Hi all, I have used a C++ program to populate Kudu tables, and set the "Not Null" flag accordingly. I have verified this using the kudu-client dump table option available, but when using the Java client, I can not get the resutls because it always throws an IllegalArgumentException("The requested column (" + columnIndex + ") is null"); I have looked through the ResultSet java code[1], and it seems somehow fishy because if the column has been set to be nullable, and you are seeing a null value, why would throw an exception all times? Or is there anything obvious that I might have overlooked? Or do I need to encode the NULL values of my data in a different way for now? Thanks! Renato M. [1] https://github.com/cloudera/kudu/blob/master/java/kudu-client/src/main/java/org/kududb/client/RowResult.java#L238 --001a1148d8527dcfc90528add355 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I have used a C++ program to po= pulate Kudu tables, and set the "Not Null" flag accordingly. I ha= ve verified this using the kudu-client dump table option available, but whe= n using the Java client, I can not get the resutls because it always throws= an=C2=A0IllegalArgumentException("The requested column (" + columnIndex += ") is null");
I have looked through the ResultSet java code[1], and it = seems somehow fishy because if the column has been set to be nullable, and = you are seeing a null value, why would throw an exception all times? Or is = there anything obvious that I might have overlooked? Or do I need to encode= the NULL values of my data in a different way for now?
Thanks!

=

--001a1148d8527dcfc90528add355--