Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3239B11D94 for ; Fri, 19 Sep 2014 19:05:35 +0000 (UTC) Received: (qmail 95762 invoked by uid 500); 19 Sep 2014 19:05:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 95708 invoked by uid 500); 19 Sep 2014 19:05:35 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 95696 invoked by uid 99); 19 Sep 2014 19:05:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2014 19:05:34 +0000 Date: Fri, 19 Sep 2014 19:05:34 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10071) Backport HBASE-6592 to 0.94 branch 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/HBASE-10071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14141098#comment-14141098 ] Lars Hofhansl commented on HBASE-10071: --------------------------------------- Let's get this into 0.94.24. [~busbey] > Backport HBASE-6592 to 0.94 branch > ---------------------------------- > > Key: HBASE-10071 > URL: https://issues.apache.org/jira/browse/HBASE-10071 > Project: HBase > Issue Type: Improvement > Components: shell > Affects Versions: 0.94.14 > Reporter: cuijianwei > Assignee: Sean Busbey > Fix For: 0.94.24 > > Attachments: HBASE-10071-0.94-v1.patch > > > Users tend to run hbase shell to query hbase quickly. The result will be shown as binary format which may not look clear enough when users write columns using specified types, such as long/int/short. Therefore, it may be helpful if the results could be shown as specified format. We make a patch to extend get/scan in hbase shell in which user could specify the data type in get/scan for each column as: > {code} > scan 'table', {COLUMNS=>['CF:QF:long']} > get 'table', 'r0', {COLUMN=>'CF:QF:long'} > {code} > Then, the result will be shown as Long type. The result of above get will be: > {code} > COLUMN CELL > CF:QF timestamp=24311261, value=24311229 > {code} > This extended format is compatible with previous format, if users do not specify the data type, the command will also work and output binary format. -- This message was sent by Atlassian JIRA (v6.3.4#6332)