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 5C018200B49 for ; Wed, 3 Aug 2016 11:19:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5A995160AAA; Wed, 3 Aug 2016 09:19:22 +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 C8B5B160A86 for ; Wed, 3 Aug 2016 11:19:21 +0200 (CEST) Received: (qmail 99622 invoked by uid 500); 3 Aug 2016 09:19:20 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 99433 invoked by uid 99); 3 Aug 2016 09:19:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2016 09:19:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 75DF22C027F for ; Wed, 3 Aug 2016 09:19:20 +0000 (UTC) Date: Wed, 3 Aug 2016 09:19:20 +0000 (UTC) From: "ChiaPing Tsai (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-16346) The addColumn() method of INCREMENT does not accept null qualifier MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 03 Aug 2016 09:19:22 -0000 ChiaPing Tsai created HBASE-16346: ------------------------------------- Summary: The addColumn() method of INCREMENT does not accept null qualifier Key: HBASE-16346 URL: https://issues.apache.org/jira/browse/HBASE-16346 Project: HBase Issue Type: Bug Reporter: ChiaPing Tsai Priority: Trivial {code:title=Increment.java|borderStyle=solid} // Is it necessary to prevent the null qualifier public Increment addColumn(byte [] family, byte [] qualifier, long amount) { if (family == null) { throw new IllegalArgumentException("family cannot be null"); } if (qualifier == null) { throw new IllegalArgumentException("qualifier cannot be null"); } List list = getCellList(family); KeyValue kv = createPutKeyValue(family, qualifier, ts, Bytes.toBytes(amount)); list.add(kv); familyMap.put(CellUtil.cloneFamily(kv), list); return this; } {code} I use the add(Cell) method to add the cell with null qualifier and it works fine. It seems to me that the check should be removed any command? thanks -- This message was sent by Atlassian JIRA (v6.3.4#6332)