Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E13AA176CF for ; Tue, 2 Jun 2015 10:00:22 +0000 (UTC) Received: (qmail 18248 invoked by uid 500); 2 Jun 2015 10:00:22 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 18195 invoked by uid 500); 2 Jun 2015 10:00:22 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 18184 invoked by uid 99); 2 Jun 2015 10:00:22 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 10:00:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5C1C01A431A for ; Tue, 2 Jun 2015 10:00:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.97 X-Spam-Level: X-Spam-Status: No, score=0.97 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id rK0KtvNRm7vP for ; Tue, 2 Jun 2015 10:00:21 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id B70A6428ED for ; Tue, 2 Jun 2015 10:00:20 +0000 (UTC) Received: (qmail 16830 invoked by uid 99); 2 Jun 2015 10:00:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 10:00:18 +0000 Date: Tue, 2 Jun 2015 10:00:18 +0000 (UTC) From: "Hudson (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-777) Support null value for fixed length ARRAY 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/PHOENIX-777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14568870#comment-14568870 ] Hudson commented on PHOENIX-777: -------------------------------- SUCCESS: Integrated in Phoenix-master #777 (See [https://builds.apache.org/job/Phoenix-master/777/]) PHOENIX-777 - Support null value for fixed length ARRAY - Addendum (Ram) (ramkrishna: rev 6c3d50ac198dd9159fb50cfe898734db99257c10) * phoenix-core/src/main/java/org/apache/phoenix/schema/types/PTimestamp.java > Support null value for fixed length ARRAY > ----------------------------------------- > > Key: PHOENIX-777 > URL: https://issues.apache.org/jira/browse/PHOENIX-777 > Project: Phoenix > Issue Type: Task > Reporter: James Taylor > Assignee: Dumindu Buddhika > Fix For: 4.4.0 > > Attachments: PHOENIX-777.patch, PHOENIX-777_addendumfor_testfailure.patch > > > A null value for a fixed length array can be handled with a bitset tacked on the end of the array. If an element is set to null, then the bit at that index is set. Trailing nulls are not stored and an attempt to access an array past the current size returns null. > Current behavior, > PBinaryArray - Throws an exception when a null is inserted. > PBooleanArray - null is considered as false when a null is inserted. > PCharArray - Throws an exception when a null is inserted. > PDateArray - Throws an exception when a null is inserted. > PDoubleArray - null is considered as 0.0 when a null is inserted. > PFloatArray - null is considered as 0.0 when a null is inserted. > PIntegerArray - null is considered as 0 when a null is inserted. > PLongArray - null is considered as 0 when a null is inserted. > PSmallIntArray - null is considered as 0 when a null is inserted. > PTimeArray - Throws an exception when a null is inserted. > PTimeStampArray - Throws an exception when a null is inserted. > PTinyIntArray - null is considered as 0 when a null is inserted. -- This message was sent by Atlassian JIRA (v6.3.4#6332)