Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25EF310AFC for ; Tue, 18 Feb 2014 10:54:47 +0000 (UTC) Received: (qmail 24331 invoked by uid 500); 18 Feb 2014 10:54:42 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 23819 invoked by uid 500); 18 Feb 2014 10:54:38 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 23258 invoked by uid 99); 18 Feb 2014 10:54:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 10:54:37 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nagapad.0904@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 10:54:30 +0000 Received: by mail-we0-f180.google.com with SMTP id u57so11419653wes.39 for ; Tue, 18 Feb 2014 02:54:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yt9O9tMhjkb9zDaG+NWlQlofo3PZ/MPuiz7kgby6BC0=; b=y3qpflYBUhLmFkq2297iyVAu0vqspJBDDrVRO+pKaraaJ559a4MXdyuQq9a9JXuLGK nvDcBfYKEA/nJrIThBbz5PJLUHvclLkbX5z8g2UJAtrOjkSHPGlL1CZgcUiuXwaQ20Lr PpH3UyQ6WfiYwXyVxe5BD5AEAlHyXXfUARWJvp+D+aES7UBJJucL/+N9vSTtSjiRypXD +nAxgWZX2S25nqq2qQUxL8qb6ahLHBWrwD8og5RAmOno/p3pjh7JKPBAgR1CDdgql7nB yE1bvaBBMMeXmf+fTFnSCma8Y2JPceFzRTpKAux9MP0QnS3h1c0hMoTaKxaO/7Bz0z4i E8iw== MIME-Version: 1.0 X-Received: by 10.194.77.7 with SMTP id o7mr18467853wjw.35.1392720849864; Tue, 18 Feb 2014 02:54:09 -0800 (PST) Received: by 10.217.65.199 with HTTP; Tue, 18 Feb 2014 02:54:09 -0800 (PST) Date: Tue, 18 Feb 2014 19:54:09 +0900 Message-ID: Subject: paging state will not work From: Katsutoshi To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bfd05fc870e4704f2ac173a X-Virus-Checked: Checked by ClamAV on apache.org --047d7bfd05fc870e4704f2ac173a Content-Type: text/plain; charset=ISO-8859-1 Hi. I am using Cassandra 2.0.5 version. If null is explicitly set to a column, paging_state will not work. My test procedure is as follows: ------ create a table and insert 10 records using cqlsh. the query is as follows: cqlsh:test> CREATE TABLE mytable (id int, range int, value text, PRIMARY KEY (id, range)); cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 0); cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 1); cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 2); cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 3); cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 4); cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, 5, null); cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, 6, null); cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, 7, null); cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, 8, null); cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, 9, null); select data using datastax driver. the pseudocode is as follows: Statement statement = QueryBuilder.select().from("mytable").setFetchSize(1); ResultSet rs = session.execute(statement); for(Row row : rs){ System.out.println(String.format("id=%s, range=%s, value=%s", row.getInt("id"), row.getInt("range"), row.getString("value"))); } the result is as follows: id=0, range=0, value=null id=0, range=1, value=null id=0, range=2, value=null id=0, range=3, value=null id=0, range=4, value=null id=0, range=5, value=null id=0, range=7, value=null id=0, range=9, value=null ------ Result is 8 records although 10 records were expected. Does anyone has a similar issue? Thanks, Katsutoshi --047d7bfd05fc870e4704f2ac173a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi.

I am using Cassandra 2.0.5 version. If null is = explicitly set to a column, paging_state will not work. My test procedure i= s as follows:

------
create a table and insert 10 records using c= qlsh. the query is as follows:

=A0=A0=A0 cqlsh:test> CREATE TABLE mytable (id int, range int, value= text, PRIMARY KEY (id, range));
=A0=A0=A0 cqlsh:test> INSERT INTO my= table (id, range) VALUES (0, 0);
=A0=A0=A0 cqlsh:test> INSERT INTO my= table (id, range) VALUES (0, 1);
=A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 2);
= =A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 3);
= =A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range) VALUES (0, 4);
= =A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, = 5, null);
=A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, = 6, null);
=A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range, value= ) VALUES (0, 7, null);
=A0=A0=A0 cqlsh:test> INSERT INTO mytable (id,= range, value) VALUES (0, 8, null);
=A0=A0=A0 cqlsh:test> INSERT INTO mytable (id, range, value) VALUES (0, = 9, null);

select data using datastax driver. the pseudocode is as fo= llows:

=A0=A0=A0 Statement statement =3D QueryBuilder.select().from(= "mytable").setFetchSize(1);
=A0=A0=A0 ResultSet rs =3D session.execute(statement);
=A0=A0=A0 for(Row= row : rs){
=A0=A0=A0=A0=A0=A0=A0 System.out.println(String.format("= ;id=3D%s, range=3D%s, value=3D%s",
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 row.getInt("id"), row.getInt("range"), row.getStrin= g("value")));
=A0=A0=A0 }

the result is as follows:

=A0=A0=A0 id=3D0, range= =3D0, value=3Dnull
=A0=A0=A0 id=3D0, range=3D1, value=3Dnull
=A0=A0= =A0 id=3D0, range=3D2, value=3Dnull
=A0=A0=A0 id=3D0, range=3D3, value= =3Dnull
=A0=A0=A0 id=3D0, range=3D4, value=3Dnull
=A0=A0=A0 id=3D0, r= ange=3D5, value=3Dnull
=A0=A0=A0 id=3D0, range=3D7, value=3Dnull
=A0=A0=A0 id=3D0, range=3D9, v= alue=3Dnull
------

Result is 8 records although 10 records were e= xpected. Does anyone has a similar issue?

Thanks,
Katsutoshi
=
--047d7bfd05fc870e4704f2ac173a--