Re: Bad Request: Type error: cannot assign result of function token (type bigint) to id (type int)

2014-06-06 Thread Laing, Michael
select * from test_paging where *token(*id*)* token(0); ml On Fri, Jun 6, 2014 at 1:47 AM, Jonathan Haddad j...@jonhaddad.com wrote: Sorry, the datastax docs are actually a bit better: http://www.datastax.com/documentation/cql/3.0/cql/cql_using/paging_c.html Jon On Thu, Jun 5, 2014 at

Re: Bad Request: Type error: cannot assign result of function token (type bigint) to id (type int)

2014-06-06 Thread Jack Krupansky
The message does seem a little odd in that it refers to “assign”, but it would make more sense to say “compare”. -- Jack Krupansky From: Kevin Burton Sent: Friday, June 6, 2014 1:22 AM To: user@cassandra.apache.org Subject: Bad Request: Type error: cannot assign result of function token (type

Re: Bad Request: Type error: cannot assign result of function token (type bigint) to id (type int)

2014-06-06 Thread Kevin Burton
Thanks!! Yes. I completely missed that. Not sure why… :) Appreciate the help! On Fri, Jun 6, 2014 at 2:59 AM, Laing, Michael michael.la...@nytimes.com wrote: select * from test_paging where *token(*id*)* token(0); ml On Fri, Jun 6, 2014 at 1:47 AM, Jonathan Haddad j...@jonhaddad.com

Re: Bad Request: Type error: cannot assign result of function token (type bigint) to id (type int)

2014-06-05 Thread Jonathan Haddad
You should read through the token docs, it has examples and specifications: http://cassandra.apache.org/doc/cql3/CQL.html#tokenFun On Thu, Jun 5, 2014 at 10:22 PM, Kevin Burton bur...@spinn3r.com wrote: I'm building a new schema which I need to read externally by paging through the result

Re: Bad Request: Type error: cannot assign result of function token (type bigint) to id (type int)

2014-06-05 Thread Jonathan Haddad
Sorry, the datastax docs are actually a bit better: http://www.datastax.com/documentation/cql/3.0/cql/cql_using/paging_c.html Jon On Thu, Jun 5, 2014 at 10:46 PM, Jonathan Haddad j...@jonhaddad.com wrote: You should read through the token docs, it has examples and specifications: