You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Philip Thompson (JIRA)" <ji...@apache.org> on 2014/12/02 15:44:13 UTC

[jira] [Commented] (CASSANDRA-8403) limit disregarded when paging with IN clause under certain conditions

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

Philip Thompson commented on CASSANDRA-8403:
--------------------------------------------

[~rhatch] What happens if the larger partition has 25 rows and {{LIMIT 20}} is still used? With your example its unclear if the limit size is not being respected, or if its being used as a limit per partition.

> limit disregarded when paging with IN clause under certain conditions
> ---------------------------------------------------------------------
>
>                 Key: CASSANDRA-8403
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8403
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Russ Hatch
>            Assignee: Benjamin Lerer
>            Priority: Minor
>
> This issue was originally reported on the python-driver userlist and confirmed by [~aholmber]
> When:
> page_size < limit < data size,
> the limit value is disregarded and all rows are paged back.
> to repro:
> create a table and populate it with two partitions
> CREATE TABLE paging_test ( id int, value text, PRIMARY KEY (id, value) )
> Add data: in one partition create 10 rows, an in a second partition create 20 rows
> perform a query with page_size of 10 and a LIMIT of 20, like so:
> SELECT * FROM paging_test where id in (1,2) LIMIT 20;
> The limit is disregarded and three pages of 10 records each will be returned.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)