<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: key-type  column_name-type</title>
		<link>http://www.datastax.com/support-forums/topic/key-type-column_name-type</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 13:28:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/key-type-column_name-type" rel="self" type="application/rss+xml" />

		<item>
			<title>nickmbailey on "key-type  column_name-type"</title>
			<link>http://www.datastax.com/support-forums/topic/key-type-column_name-type#post-1074</link>
			<pubDate>Mon, 30 Jan 2012 17:29:10 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1074@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;What is the exact error you are getting from the CLI? The key_validation_class should only affect your row keys and it is fine to have different validators for the column values. Column names are validated by the 'comparator' setting.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "key-type  column_name-type"</title>
			<link>http://www.datastax.com/support-forums/topic/key-type-column_name-type#post-1072</link>
			<pubDate>Sun, 29 Jan 2012 11:54:46 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1072@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;same with DataStax Community Edition 1.0.7
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "key-type  column_name-type"</title>
			<link>http://www.datastax.com/support-forums/topic/key-type-column_name-type#post-1071</link>
			<pubDate>Sun, 29 Jan 2012 10:38:41 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1071@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;in my example I'd like to store files in two column families: files_meta and files_data&#60;br /&#62;
files_meta contains attributes like name, size etc&#60;br /&#62;
files_data contains the actual raw data splitted into chunks&#60;/p&#62;
&#60;p&#62;I'd like to use UUIDs as ByteType keys but at the same time the column names in files_meta should be in UTF8Type&#60;/p&#62;
&#60;p&#62;update column family files_data&#60;br /&#62;
	with comparator = 'BytesType'&#60;br /&#62;
	and key_validation_class = 'BytesType'&#60;br /&#62;
        and column_metadata =&#60;br /&#62;
        [&#60;br /&#62;
        ];&#60;/p&#62;
&#60;p&#62;update column family files_meta&#60;br /&#62;
	with comparator = 'BytesType'&#60;br /&#62;
	and key_validation_class = 'BytesType'&#60;br /&#62;
	and default_validation_class = 'UTF8Type'&#60;br /&#62;
        and column_metadata =&#60;br /&#62;
        [&#60;br /&#62;
        {column_name: name, validation_class: UTF8Type},&#60;br /&#62;
        {column_name: size, validation_class: LongType},&#60;br /&#62;
        ];&#60;/p&#62;
&#60;p&#62;unfortunately cassandra (1.0.6) does not allow to have different key- and column_name-types? at least CLI does not like this column family definition&#60;/p&#62;
&#60;p&#62;I'm not sure yet if I really need that as I'm just getting started with Cassandra but it looks strange to me that the key_validation_class also accounts for the column names
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
