cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremiah Jordan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7726) Give CRR a default input_cql Statement
Date Fri, 08 Aug 2014 19:59:12 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14091218#comment-14091218
] 

Jeremiah Jordan commented on CASSANDRA-7726:
--------------------------------------------

We should also append the token stuff to the users query if they don't put it there.  As without
the token stuff the query is not going to do what the user expects.

> Give CRR a default input_cql Statement
> --------------------------------------
>
>                 Key: CASSANDRA-7726
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7726
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Hadoop
>            Reporter: Russell Alexander Spitzer
>            Assignee: Mike Adamson
>         Attachments: 7726.txt
>
>
> Inorder to ease migration from CqlPagingRecordReader to CqlRecordReader, it would be
helpful if CRR input_cql defaulted to a select statement that would mirror the behavior of
CPRR.
> For example for a give table with partition key `((x,y,z),c1,c2)`
> It would automatically generate
> {code}
> input_cql = SELECT * FROM ks.tab WHERE token(x,y,z) > ? AND token (x,y,z) <= ?

> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message