Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 59006CB92 for ; Fri, 14 Nov 2014 13:42:34 +0000 (UTC) Received: (qmail 17780 invoked by uid 500); 14 Nov 2014 13:42:33 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 17711 invoked by uid 500); 14 Nov 2014 13:42:33 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 17700 invoked by uid 500); 14 Nov 2014 13:42:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 17697 invoked by uid 99); 14 Nov 2014 13:42:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 13:42:33 +0000 Date: Fri, 14 Nov 2014 13:42:33 +0000 (UTC) From: "Jasper Knulst (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-8871) Hive Hbase Integration : Support for NULL value columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jasper Knulst created HIVE-8871: ----------------------------------- Summary: Hive Hbase Integration : Support for NULL value columns Key: HIVE-8871 URL: https://issues.apache.org/jira/browse/HIVE-8871 Project: Hive Issue Type: Bug Components: HBase Handler Affects Versions: 0.10.0 Reporter: Jasper Knulst If you map Hive to a Hbase table where one CF only has qualifiers but no values, Hive always outputs ' {} ' for that key. As soon as you put a single byte (like a space) as value you'll get a return like this ' {"20140911"," "}. Since it is a common data modelling technique in Hbase to not use the value (and essentially use the qualifier in a CF as value holder) I think it would be worthwhile to have some support for this in the Hbase handler. A solution could be to show a data structure like CF:qualifier: like this: {"20140911",""} , where '20140911' is the qualifier and NULL value in Hbase are shown as empty json strings. CREATE EXTERNAL TABLE hb_test ( userhash string, count bigint, dates map) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ( "hbase.columns.mapping" = ":key,SUM:COUNT,DATES:", "hbase.table.default.storage.type" = "binary" ) TBLPROPERTIES("hbase.table.name" = "test"); -- This message was sent by Atlassian JIRA (v6.3.4#6332)