You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Scott Lewis <sl...@composent.com> on 2011/12/29 07:00:01 UTC
column family names
I've noticed when creating column families that the name of the column
family apparently has some restrictions...e.g. the presence of a '.'
character in the column family name seems to throw an exception. Is
there anywhere articulated the restrictions on column family names (and
keyspace names...if there are any such restrictions). If so, where?
Thanksinadvance,
Scott
Re: column family names
Posted by aaron morton <aa...@thelastpickle.com>.
From the help for create column family in the CLI…
- name: Name of the new column family. Names may only contain letters,
numbers and underscores.
The CF name is used as part of a file name that includes other information and the "-" is used as a separator.
Cheers
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com
On 30/12/2011, at 9:59 AM, Scott Lewis wrote:
> Hi Edward,
>
> On 12/29/2011 12:51 PM, Edward Capriolo wrote:
>> I never use '.' or '-' in anything. It tends to get object mapping,
>> code generation libraries, and interpreters upset. I just use a-z and
>> lower case and know that no one can take that away from me
>> (hopefully).
>
> I don't necessarily disagree with these personal conventions, but on things like unique names it's my observation that others have other approaches...so in general I think it's desirable to be as weak on these naming restrictions as possible at the lower layers.
>
> Scott
>
>
Re: column family names
Posted by Scott Lewis <sl...@composent.com>.
Hi Edward,
On 12/29/2011 12:51 PM, Edward Capriolo wrote:
> I never use '.' or '-' in anything. It tends to get object mapping,
> code generation libraries, and interpreters upset. I just use a-z and
> lower case and know that no one can take that away from me
> (hopefully).
I don't necessarily disagree with these personal conventions, but on
things like unique names it's my observation that others have other
approaches...so in general I think it's desirable to be as weak on these
naming restrictions as possible at the lower layers.
Scott
Re: column family names
Posted by Edward Capriolo <ed...@gmail.com>.
I never use '.' or '-' in anything. It tends to get object mapping,
code generation libraries, and interpreters upset. I just use a-z and
lower case and know that no one can take that away from me
(hopefully).
On 12/29/11, Edward Capriolo <ed...@gmail.com> wrote:
> On 12/29/11, Scott Lewis <sl...@composent.com> wrote:
>> Hi Edward,
>>
>> Thanks...although it looks from CASSANDRA-1377 comments that perhaps the
>> reserved characters in CF and keyspace names haven't been decided yet?
>> If it hasn't been decided yet I would suggest making it as relaxed as
>> possible (allowing '.' in addition to '-' and perhaps others...if
>> possible)...and then having some minimal docs on the restrictions...in
>> addition to the source...just so that users can easily comply with the
>> restrictions. I'll agree to help with the docs if things are decided.
>>
>> Thanks,
>>
>> Scott
>>
>>
>> On 12/29/2011 9:41 AM, Edward Capriolo wrote:
>>> Use the source :)
>>>
>>> [edward@ec cas-trunk]$ grep regex ./*
>>> ./build.xml:<ignore regex="org.apache.log4j.*"/>
>>> ./build.xml:<containsregexp expression="^0 Unknown Licenses"/>
>>> ./build.xml:<regexpmapper from="^.*/([^/]+)$$" to="\1"
>>> handledirsep="yes"
>>> />
>>> ./CHANGES.txt: matches a '^\w+' regex. (CASSANDRA-1377)
>>> ./NEWS.txt: to the '^\w+' regex convention.
>>> ./NEWS.txt: - Keyspace and column family names that do not confirm to
>>> a '^\w+' regex
>>>
>>> * disallow invalid keyspace and column family names. This includes
>>> name
>>> that
>>> matches a '^\w+' regex. (CASSANDRA-1377)
>>>
>>> https://issues.apache.org/jira/browse/CASSANDRA-1377
>>>
>>>
>>>
>>> On 12/29/11, Scott Lewis<sl...@composent.com> wrote:
>>>> I've noticed when creating column families that the name of the column
>>>> family apparently has some restrictions...e.g. the presence of a '.'
>>>> character in the column family name seems to throw an exception. Is
>>>> there anywhere articulated the restrictions on column family names (and
>>>> keyspace names...if there are any such restrictions). If so, where?
>>>>
>>>> Thanksinadvance,
>>>>
>>>> Scott
>>>>
>>>>
>>>>
>>
>>
>
Re: column family names
Posted by Edward Capriolo <ed...@gmail.com>.
On 12/29/11, Scott Lewis <sl...@composent.com> wrote:
> Hi Edward,
>
> Thanks...although it looks from CASSANDRA-1377 comments that perhaps the
> reserved characters in CF and keyspace names haven't been decided yet?
> If it hasn't been decided yet I would suggest making it as relaxed as
> possible (allowing '.' in addition to '-' and perhaps others...if
> possible)...and then having some minimal docs on the restrictions...in
> addition to the source...just so that users can easily comply with the
> restrictions. I'll agree to help with the docs if things are decided.
>
> Thanks,
>
> Scott
>
>
> On 12/29/2011 9:41 AM, Edward Capriolo wrote:
>> Use the source :)
>>
>> [edward@ec cas-trunk]$ grep regex ./*
>> ./build.xml:<ignore regex="org.apache.log4j.*"/>
>> ./build.xml:<containsregexp expression="^0 Unknown Licenses"/>
>> ./build.xml:<regexpmapper from="^.*/([^/]+)$$" to="\1" handledirsep="yes"
>> />
>> ./CHANGES.txt: matches a '^\w+' regex. (CASSANDRA-1377)
>> ./NEWS.txt: to the '^\w+' regex convention.
>> ./NEWS.txt: - Keyspace and column family names that do not confirm to
>> a '^\w+' regex
>>
>> * disallow invalid keyspace and column family names. This includes name
>> that
>> matches a '^\w+' regex. (CASSANDRA-1377)
>>
>> https://issues.apache.org/jira/browse/CASSANDRA-1377
>>
>>
>>
>> On 12/29/11, Scott Lewis<sl...@composent.com> wrote:
>>> I've noticed when creating column families that the name of the column
>>> family apparently has some restrictions...e.g. the presence of a '.'
>>> character in the column family name seems to throw an exception. Is
>>> there anywhere articulated the restrictions on column family names (and
>>> keyspace names...if there are any such restrictions). If so, where?
>>>
>>> Thanksinadvance,
>>>
>>> Scott
>>>
>>>
>>>
>
>
Re: column family names
Posted by Scott Lewis <sl...@composent.com>.
Hi Edward,
Thanks...although it looks from CASSANDRA-1377 comments that perhaps the
reserved characters in CF and keyspace names haven't been decided yet?
If it hasn't been decided yet I would suggest making it as relaxed as
possible (allowing '.' in addition to '-' and perhaps others...if
possible)...and then having some minimal docs on the restrictions...in
addition to the source...just so that users can easily comply with the
restrictions. I'll agree to help with the docs if things are decided.
Thanks,
Scott
On 12/29/2011 9:41 AM, Edward Capriolo wrote:
> Use the source :)
>
> [edward@ec cas-trunk]$ grep regex ./*
> ./build.xml:<ignore regex="org.apache.log4j.*"/>
> ./build.xml:<containsregexp expression="^0 Unknown Licenses"/>
> ./build.xml:<regexpmapper from="^.*/([^/]+)$$" to="\1" handledirsep="yes" />
> ./CHANGES.txt: matches a '^\w+' regex. (CASSANDRA-1377)
> ./NEWS.txt: to the '^\w+' regex convention.
> ./NEWS.txt: - Keyspace and column family names that do not confirm to
> a '^\w+' regex
>
> * disallow invalid keyspace and column family names. This includes name that
> matches a '^\w+' regex. (CASSANDRA-1377)
>
> https://issues.apache.org/jira/browse/CASSANDRA-1377
>
>
>
> On 12/29/11, Scott Lewis<sl...@composent.com> wrote:
>> I've noticed when creating column families that the name of the column
>> family apparently has some restrictions...e.g. the presence of a '.'
>> character in the column family name seems to throw an exception. Is
>> there anywhere articulated the restrictions on column family names (and
>> keyspace names...if there are any such restrictions). If so, where?
>>
>> Thanksinadvance,
>>
>> Scott
>>
>>
>>
Re: column family names
Posted by Edward Capriolo <ed...@gmail.com>.
Use the source :)
[edward@ec cas-trunk]$ grep regex ./*
./build.xml: <ignore regex="org.apache.log4j.*"/>
./build.xml: <containsregexp expression="^0 Unknown Licenses"/>
./build.xml: <regexpmapper from="^.*/([^/]+)$$" to="\1" handledirsep="yes" />
./CHANGES.txt: matches a '^\w+' regex. (CASSANDRA-1377)
./NEWS.txt: to the '^\w+' regex convention.
./NEWS.txt: - Keyspace and column family names that do not confirm to
a '^\w+' regex
* disallow invalid keyspace and column family names. This includes name that
matches a '^\w+' regex. (CASSANDRA-1377)
https://issues.apache.org/jira/browse/CASSANDRA-1377
On 12/29/11, Scott Lewis <sl...@composent.com> wrote:
> I've noticed when creating column families that the name of the column
> family apparently has some restrictions...e.g. the presence of a '.'
> character in the column family name seems to throw an exception. Is
> there anywhere articulated the restrictions on column family names (and
> keyspace names...if there are any such restrictions). If so, where?
>
> Thanksinadvance,
>
> Scott
>
>
>