<?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: Cassandra-jdbc: cannot select * on column family with composite key</title>
		<link>http://www.datastax.com/support-forums/topic/cassandra-jdbc-cannot-select-on-column-family-with-composite-key</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 02:38:49 +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/cassandra-jdbc-cannot-select-on-column-family-with-composite-key" rel="self" type="application/rss+xml" />

		<item>
			<title>akmiller on "Cassandra-jdbc: cannot select * on column family with composite key"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-jdbc-cannot-select-on-column-family-with-composite-key#post-7835</link>
			<pubDate>Wed, 05 Dec 2012 16:43:30 +0000</pubDate>
			<dc:creator>akmiller</dc:creator>
			<guid isPermaLink="false">7835@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;OK, thanks for the response. I've switched to using Hector for now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sam on "Cassandra-jdbc: cannot select * on column family with composite key"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-jdbc-cannot-select-on-column-family-with-composite-key#post-7804</link>
			<pubDate>Tue, 04 Dec 2012 12:30:07 +0000</pubDate>
			<dc:creator>sam</dc:creator>
			<guid isPermaLink="false">7804@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;The current cassandra-jdbc driver doesn't support CQL3 with composite keys. DataStax recently released an early version of a driver[1] for the native CQL protocol (which is new in Cassandra 1.2). I would expect adding a JDBC layer on top of the driver core will be happen at some point in the not to distant future, but until then I'm afraid your options are somewhat limited to CQL 2 if you want to access data in Cassandra using JDBC. &#60;/p&#62;
&#60;p&#62;[1]http://github.com/datastax/java-driver
&#60;/p&#62;</description>
		</item>
		<item>
			<title>akmiller on "Cassandra-jdbc: cannot select * on column family with composite key"</title>
			<link>http://www.datastax.com/support-forums/topic/cassandra-jdbc-cannot-select-on-column-family-with-composite-key#post-7776</link>
			<pubDate>Mon, 03 Dec 2012 17:01:00 +0000</pubDate>
			<dc:creator>akmiller</dc:creator>
			<guid isPermaLink="false">7776@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I am new to Cassandra. I have a Java 6 test program to &#34;select * from table1&#34; using Cassandra 1.1.6, accessing with the Cassandra-jdbc driver 1.1.2, all running on Windows 7. This works fine if table1 has a simple primary key, I get all the columns of all the rows. However, if it has a composite primary key, all I get back is the first column (the value of the key) of the first row and nothing else. If I try to select specific columns from the table with simple PK (e.g. &#34;select user_id, object_type, created_at from table1&#34;), it works fine. If I try this on the table with composite PK, I get errors:&#60;br /&#62;
&#60;code&#62;Exception: java.lang.NullPointerException java.lang.NullPointerException at org.apache.cassandra.cql.jdbc.TypedColumn.(TypedColumn.java:45) at org.apache.cassandra.cql.jdbc.CassandraResultSet.createColumn(CassandraResultSet.java:972) at org.apache.cassandra.cql.jdbc.CassandraResultSet.populateColumns(CassandraResultSet.java:156) at org.apache.cassandra.cql.jdbc.CassandraResultSet.(CassandraResultSet.java:130) at org.apache.cassandra.cql.jdbc.CassandraStatement.doExecute(CassandraStatement.java:167) at org.apache.cassandra.cql.jdbc.CassandraStatement.executeQuery(CassandraStatement.java:227) at com.west.testjson.TestJson.TestCassandra(TestJson.java:60) at com.west.testjson.TestJson.main(TestJson.java:160)&#60;/code&#62;&#60;br /&#62;
Can anyone help me understand what I am doing wrong?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
