Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 61528 invoked from network); 7 Dec 2010 19:16:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Dec 2010 19:16:33 -0000 Received: (qmail 12578 invoked by uid 500); 7 Dec 2010 19:16:33 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 12552 invoked by uid 500); 7 Dec 2010 19:16:33 -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 12544 invoked by uid 99); 7 Dec 2010 19:16:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 19:16:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Dec 2010 19:16:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB7JG9xU000523 for ; Tue, 7 Dec 2010 19:16:09 GMT Message-ID: <12088184.32831291749369487.JavaMail.jira@thor> Date: Tue, 7 Dec 2010 14:16:09 -0500 (EST) From: "stack (JIRA)" To: issues@hbase.apache.org Subject: [jira] Updated: (HBASE-2960) Allow Incremental Table Alterations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-2960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-2960: ------------------------- Resolution: Duplicate Status: Resolved (was: Patch Available) Fixed already in TRUNK: HBASE-2944. Sorry for the inconvenience Karthik. Thanks for the patch. > Allow Incremental Table Alterations > ----------------------------------- > > Key: HBASE-2960 > URL: https://issues.apache.org/jira/browse/HBASE-2960 > Project: HBase > Issue Type: Wish > Components: client > Affects Versions: 0.89.20100621 > Reporter: Karthick Sankarachary > Attachments: HBASE-2960.patch > > > As per the HBase shell help, the alter command will "Alter column family schema; pass table name and a dictionary specifying new column family schema." The assumption here seems to be that the new column family schema must be completely specified. In other words, if a certain attribute is not specified in the column family schema, then it is effectively defaulted. Is this side-effect by design? > I for one assumed (wrongly apparently) that I can alter a table in "increments". Case in point, the following commands should've resulted in the final value of the VERSIONS attribute of my table to stay put at 1, but instead it got defaulted to 3. I guess there's no right or wrong answer here, but what should alter do by default? My expectation is that it only changes those attributes that were specified in the "alter" command, leaving the unspecified attributes untouched. > hbase(main):003:0> create 't1', {NAME => 'f1', VERSIONS => 1} > 0 row(s) in 1.7230 seconds > hbase(main):004:0> describe 't1' > DESCRIPTION > {NAME => 't1', FAMILIES => [{NAME => 'f1', COMPRESSION => 'NONE', VERSIONS => '1', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => ' false', BLOCKCACHE => 'true'}]} > 1 row(s) in 0.2030 seconds > hbase(main):006:0> disable 't1' > 0 row(s) in 0.1140 seconds > hbase(main):007:0> alter 't1', {NAME => 'f1', IN_MEMORY => 'true'} > 0 row(s) in 0.0160 seconds > hbase(main):009:0> describe 't1' > DESCRIPTION > {NAME => 't1', FAMILIES => [{NAME => 'f1', VERSIONS => '3', COMPRESSION => 'NONE', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => ' true', BLOCKCACHE => 'true'}]} > 1 row(s) in 0.1280 seconds -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.