<?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: Get on CF with key returning 0 results, but key exists when retrieving whole table using pycassa</title>
		<link>http://www.datastax.com/support-forums/topic/get-on-cf-with-key-returning-0-results-but-key-exists-when-retrieving-whole-table-using-pycassa</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 20:33:25 +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/get-on-cf-with-key-returning-0-results-but-key-exists-when-retrieving-whole-table-using-pycassa" rel="self" type="application/rss+xml" />

		<item>
			<title>nickmbailey on "Get on CF with key returning 0 results, but key exists when retrieving whole table using pycassa"</title>
			<link>http://www.datastax.com/support-forums/topic/get-on-cf-with-key-returning-0-results-but-key-exists-when-retrieving-whole-table-using-pycassa#post-9210</link>
			<pubDate>Thu, 28 Feb 2013 16:16:05 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">9210@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;From what I can tell, this appears to be a bug. Can you file a bug report on the apache jira? &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://issues.apache.org/jira/browse/CASSANDRA&#34; rel=&#34;nofollow&#34;&#62;https://issues.apache.org/jira/browse/CASSANDRA&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Donald on "Get on CF with key returning 0 results, but key exists when retrieving whole table using pycassa"</title>
			<link>http://www.datastax.com/support-forums/topic/get-on-cf-with-key-returning-0-results-but-key-exists-when-retrieving-whole-table-using-pycassa#post-9166</link>
			<pubDate>Sun, 24 Feb 2013 09:31:52 +0000</pubDate>
			<dc:creator>Donald</dc:creator>
			<guid isPermaLink="false">9166@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi, I should have added that when we are using cqlsh and looking for key 3997404&#60;/p&#62;
&#60;p&#62;select key from u where key = 3997404;&#60;br /&#62;
cqlsh:users&#38;gt;&#60;/p&#62;
&#60;p&#62;returns 0 results, even although when select * from u in cqlsh, or get the whole table in pycassa we see the row with the key 3997404&#60;/p&#62;
&#60;p&#62;Sorry for the confusion.&#60;/p&#62;
&#60;p&#62;Regards&#60;/p&#62;
&#60;p&#62;D.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Donald on "Get on CF with key returning 0 results, but key exists when retrieving whole table using pycassa"</title>
			<link>http://www.datastax.com/support-forums/topic/get-on-cf-with-key-returning-0-results-but-key-exists-when-retrieving-whole-table-using-pycassa#post-9133</link>
			<pubDate>Fri, 22 Feb 2013 15:11:36 +0000</pubDate>
			<dc:creator>Donald</dc:creator>
			<guid isPermaLink="false">9133@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I should say that in pycassa when I try:&#60;/p&#62;
&#60;p&#62;userscf.get(3997404)&#60;/p&#62;
&#60;p&#62;File &#34;test.py&#34;, line 10, in &#38;lt;module&#38;gt;&#60;br /&#62;
    userscf.get(3997404)&#60;br /&#62;
  File &#34;/usr/local/lib/python2.7/dist-packages/pycassa/columnfamily.py&#34;, line 655, in get&#60;br /&#62;
    raise NotFoundException()&#60;br /&#62;
pycassa.cassandra.ttypes.NotFoundException: NotFoundException(_message=None)&#60;/p&#62;
&#60;p&#62;It seems to be in Ints that are smaller than the average.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Donald on "Get on CF with key returning 0 results, but key exists when retrieving whole table using pycassa"</title>
			<link>http://www.datastax.com/support-forums/topic/get-on-cf-with-key-returning-0-results-but-key-exists-when-retrieving-whole-table-using-pycassa#post-9132</link>
			<pubDate>Fri, 22 Feb 2013 14:59:48 +0000</pubDate>
			<dc:creator>Donald</dc:creator>
			<guid isPermaLink="false">9132@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;We have a table in Cassandra 1.2.0. That has an VarInt key. When we search keys we can see that they exist. &#60;/p&#62;
&#60;p&#62;Table description:&#60;/p&#62;
&#60;p&#62;CREATE TABLE u (&#60;br /&#62;
  key varint PRIMARY KEY,&#60;br /&#62;
) WITH COMPACT STORAGE AND&#60;br /&#62;
  bloom_filter_fp_chance=0.010000 AND&#60;br /&#62;
  caching='KEYS_ONLY' AND&#60;br /&#62;
  comment='' AND&#60;br /&#62;
  dclocal_read_repair_chance=0.000000 AND&#60;br /&#62;
  gc_grace_seconds=864000 AND&#60;br /&#62;
  read_repair_chance=1.000000 AND&#60;br /&#62;
  replicate_on_write='true' AND&#60;br /&#62;
  compaction={'class': 'SizeTieredCompactionStrategy'} AND&#60;br /&#62;
  compression={'sstable_compression': 'SnappyCompressor'};&#60;/p&#62;
&#60;p&#62;Select key from u limit 10;&#60;/p&#62;
&#60;p&#62; key&#60;br /&#62;
-----------&#60;br /&#62;
  12040911&#60;br /&#62;
  60619595&#60;br /&#62;
   3220132&#60;br /&#62;
   4602232&#60;br /&#62;
   3997404&#60;br /&#62;
   6312372&#60;br /&#62;
   1128185&#60;br /&#62;
   1507755&#60;br /&#62;
   1778092&#60;br /&#62;
   4701841&#60;/p&#62;
&#60;p&#62;When I try and get the row for key 60619595 it works fine.&#60;/p&#62;
&#60;p&#62;cqlsh:users&#38;gt; select key from u where key = 60619595;&#60;/p&#62;
&#60;p&#62; key&#60;br /&#62;
-----------&#60;br /&#62;
 60619595&#60;/p&#62;
&#60;p&#62;cqlsh:users&#38;gt; select key from u where key = 3997404;&#60;br /&#62;
cqlsh:users&#38;gt; &#60;/p&#62;
&#60;p&#62;When I use pycassa to get the whole table I can access the row.&#60;/p&#62;
&#60;p&#62;import pycassa&#60;br /&#62;
from struct import *&#60;br /&#62;
from pycassa.types import *&#60;br /&#62;
from urlparse import urlparse&#60;br /&#62;
import operator&#60;/p&#62;
&#60;p&#62;userspool = pycassa.ConnectionPool('users');&#60;br /&#62;
userscf = pycassa.ColumnFamily(userspool, 'u');&#60;br /&#62;
users = {}&#60;br /&#62;
u = list(userscf.get_range())&#60;br /&#62;
for r in u:&#60;br /&#62;
        users[r[0]] = r[1]&#60;br /&#62;
print users[3997404]&#60;/p&#62;
&#60;p&#62;returns the correct result. &#60;/p&#62;
&#60;p&#62;What am I doing wrong? I cannot see what the error is.&#60;/p&#62;
&#60;p&#62;Any help would be appreciated, &#60;/p&#62;
&#60;p&#62;Regards&#60;/p&#62;
&#60;p&#62;Donald.&#60;/p&#62;
&#60;p&#62;PS:&#60;br /&#62;
I should say that in pycassa when I try:&#60;/p&#62;
&#60;p&#62;userscf.get(3997404)&#60;/p&#62;
&#60;p&#62;File &#34;test.py&#34;, line 10, in &#38;lt;module&#38;gt;&#60;br /&#62;
userscf.get(3997404)&#60;br /&#62;
File &#34;/usr/local/lib/python2.7/dist-packages/pycassa/columnfamily.py&#34;, line 655, in get&#60;br /&#62;
raise NotFoundException()&#60;br /&#62;
pycassa.cassandra.ttypes.NotFoundException: NotFoundException(_message=None)&#60;/p&#62;
&#60;p&#62;It seems to be in Ints that are smaller than the average.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
