Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-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 E4F1FF5C5 for ; Wed, 8 May 2013 01:21:49 +0000 (UTC) Received: (qmail 71112 invoked by uid 500); 8 May 2013 01:21:49 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 71051 invoked by uid 500); 8 May 2013 01:21:49 -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 Delivered-To: moderator for dev@hbase.apache.org Received: (qmail 36633 invoked by uid 99); 8 May 2013 01:10:01 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shahab.yunus@gmail.com designates 209.85.214.47 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=0esXbP3nD0gg7q1YmL4EhCgwkms9xdqeIEVtriTc29s=; b=TG8usZUt5EMKkRPL8mcyY206XD1GeTZ9JKnQuElPHrSqGIuaXIsjBKIIKd6k5ep9OQ hGKxm3RYX/3PEAiDEdgV4qMv5eg40uh2veO9IbYlvBEbzg+g+HNquo1UGzbetMcK/een H2YdH/evyQXyjBHL/yUT7lyOg/KQcwfjCat0EWTyfJxdz/Wd60n5vT2TEUQlx+OKsdYU jBXx/XqPEBaT4cVn71g2IA5hobjqy9GGe9n1HOPmWgLeQ0zJECJB14WRvTAzdi21Yl+l 9BDCiD39lL4em3I38LlCagLy5+S+eV7PloYo3s+KD4dIEAYGu1S19jogm/O01bMNOqql 5PQQ== MIME-Version: 1.0 X-Received: by 10.204.62.137 with SMTP id x9mr1214633bkh.90.1367975376442; Tue, 07 May 2013 18:09:36 -0700 (PDT) In-Reply-To: References: <0D43D31C-B2A5-4F74-BC4C-0509A0418779@apache.org> Date: Tue, 7 May 2013 21:09:36 -0400 Message-ID: Subject: Re: [DISCUSS] Namespace Delimiter From: Shahab Yunus To: user@hbase.apache.org Cc: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11c393ac60086004dc2a9614 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c393ac60086004dc2a9614 Content-Type: text/plain; charset=ISO-8859-1 '.' would have been ideal but I agree with it causing serious migration issues. I think we can use # It is not a widely used character in names or naming of objects or variables (I don't have any scientific data, just observation) also in Pig the key.value in case of accessing the map representing a HBase column family also uses this. Plus it is already used as a special character in other technologies (commen\ts in mySQL, temp tables in MS SQL etc.) On Tue, May 7, 2013 at 7:57 PM, Ted Yu wrote: > Interesting discussion. > > On Tue, May 7, 2013 at 4:49 PM, Ian Varley wrote: > > > I would also submit that "." is a pretty universal standard (citation > > needed) in relational databases for separating namespaces (schemas, etc.) > > from tables. We use that now to represent the same idea, and using a > > different delimiter would be less than ideal in the long run. > > > > But, I agree with Jon - anything in the 0.96 upgrade that causes people > to > > change client code in lock-step isn't going to fly. > > > > Is there any solution which can use "." but be transparent at upgrade > > time? I.e. you could still refer to it by its full "Namespace.Table" name > > in client code, and it does a little more work to try both combinations? > > That'd prevent cases where someone already has tables called both "Y' and > > "X.Y", but, come on, who does that? > > > > Ian > > > > On May 7, 2013, at 6:43 PM, Jonathan Hsieh wrote: > > > > I prefer using a delimiter that does not require migration. As someone > who > > has to support a wide variety of users, this will cause much less > confusion > > from our users (and save me grief!) > > > > From the code [1], any symbol char other than '.', '_', or '-' would be > an > > ok delimiter. howabout a ':' or '#'? > > > > [1] > > > > > https://github.com/apache/hbase/blob/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/HTableDescriptor.java#L415 > > > > Jon. > > > > > > On Tue, May 7, 2013 at 4:38 PM, Francis Liu wrote: > > > > Hi, > > > > As part of the namespace patch (HBASE-8015). We will need a delimiter to > > separate namespace name from table name. The obvious choice here would > be a > > dot '.'. Since dot is presently a valid character for table names that > > would require users to migrate their tables (ie renaming tables) as part > of > > upgrade to 0.96. Another option is to use a different delimiter to avoid > > the table migration altogether. Thoughts? > > > > -Francis > > > > > > > > > > -- > > // Jonathan Hsieh (shay) > > // Software Engineer, Cloudera > > // jon@cloudera.com > > > > > --001a11c393ac60086004dc2a9614--