[jira] [Updated] (CASSANDRA-11603) PER PARTITION LIMIT does not work properly for SinglePartition
[ https://issues.apache.org/jira/browse/CASSANDRA-11603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-11603: --- Component/s: CQL > PER PARTITION LIMIT does not work properly for SinglePartition > -- > > Key: CASSANDRA-11603 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11603 > Project: Cassandra > Issue Type: Bug > Components: CQL >Reporter: Benjamin Lerer >Assignee: Benjamin Lerer > Fix For: 3.6 > > Attachments: 11603-trunk.txt > > > When the {{PER PARTITION LIMIT}} is greater than the page size the limit is > not respected for single or multi partitions queries. > The problem can be reproduced using the java driver with the following code: > {code} > session = cluster.connect(); > session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION > = {'class' : 'SimpleStrategy', 'replication_factor' : '1'}"); > session.execute("USE test"); > session.execute("DROP TABLE IF EXISTS test"); > session.execute("CREATE TABLE IF NOT EXISTS test (a int, b int, c > int, PRIMARY KEY(a, b))"); > PreparedStatement prepare = session.prepare("INSERT INTO test (a, b, > c) VALUES (?, ?, ?);"); > for (int i = 0; i < 5; i++) > for (int j = 0; j < 10; j++) > session.execute(prepare.bind(i, j, i + j)); > ResultSet rs = session.execute(session.newSimpleStatement("SELECT * > FROM test WHERE a = 1 PER PARTITION LIMIT 3") > .setFetchSize(2)); > for (Row row : rs) > { > System.out.println(row); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-11603) PER PARTITION LIMIT does not work properly for SinglePartition
[ https://issues.apache.org/jira/browse/CASSANDRA-11603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-11603: --- Resolution: Fixed Fix Version/s: (was: 3.x) 3.6 Status: Resolved (was: Ready to Commit) Committed to trunk at b2d8e88217d0532d54cba0cfae8ab6951df66f35. > PER PARTITION LIMIT does not work properly for SinglePartition > -- > > Key: CASSANDRA-11603 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11603 > Project: Cassandra > Issue Type: Bug >Reporter: Benjamin Lerer >Assignee: Benjamin Lerer > Fix For: 3.6 > > Attachments: 11603-trunk.txt > > > When the {{PER PARTITION LIMIT}} is greater than the page size the limit is > not respected for single or multi partitions queries. > The problem can be reproduced using the java driver with the following code: > {code} > session = cluster.connect(); > session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION > = {'class' : 'SimpleStrategy', 'replication_factor' : '1'}"); > session.execute("USE test"); > session.execute("DROP TABLE IF EXISTS test"); > session.execute("CREATE TABLE IF NOT EXISTS test (a int, b int, c > int, PRIMARY KEY(a, b))"); > PreparedStatement prepare = session.prepare("INSERT INTO test (a, b, > c) VALUES (?, ?, ?);"); > for (int i = 0; i < 5; i++) > for (int j = 0; j < 10; j++) > session.execute(prepare.bind(i, j, i + j)); > ResultSet rs = session.execute(session.newSimpleStatement("SELECT * > FROM test WHERE a = 1 PER PARTITION LIMIT 3") > .setFetchSize(2)); > for (Row row : rs) > { > System.out.println(row); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-11603) PER PARTITION LIMIT does not work properly for SinglePartition
[ https://issues.apache.org/jira/browse/CASSANDRA-11603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-11603: --- Attachment: 11603-trunk.txt > PER PARTITION LIMIT does not work properly for SinglePartition > -- > > Key: CASSANDRA-11603 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11603 > Project: Cassandra > Issue Type: Bug >Reporter: Benjamin Lerer >Assignee: Benjamin Lerer > Fix For: 3.x > > Attachments: 11603-trunk.txt > > > When the {{PER PARTITION LIMIT}} is greater than the page size the limit is > not respected for single or multi partitions queries. > The problem can be reproduced using the java driver with the following code: > {code} > session = cluster.connect(); > session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION > = {'class' : 'SimpleStrategy', 'replication_factor' : '1'}"); > session.execute("USE test"); > session.execute("DROP TABLE IF EXISTS test"); > session.execute("CREATE TABLE IF NOT EXISTS test (a int, b int, c > int, PRIMARY KEY(a, b))"); > PreparedStatement prepare = session.prepare("INSERT INTO test (a, b, > c) VALUES (?, ?, ?);"); > for (int i = 0; i < 5; i++) > for (int j = 0; j < 10; j++) > session.execute(prepare.bind(i, j, i + j)); > ResultSet rs = session.execute(session.newSimpleStatement("SELECT * > FROM test WHERE a = 1 PER PARTITION LIMIT 3") > .setFetchSize(2)); > for (Row row : rs) > { > System.out.println(row); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-11603) PER PARTITION LIMIT does not work properly for SinglePartition
[ https://issues.apache.org/jira/browse/CASSANDRA-11603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Petrov updated CASSANDRA-11603: Status: Ready to Commit (was: Patch Available) > PER PARTITION LIMIT does not work properly for SinglePartition > -- > > Key: CASSANDRA-11603 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11603 > Project: Cassandra > Issue Type: Bug >Reporter: Benjamin Lerer >Assignee: Benjamin Lerer > Fix For: 3.x > > > When the {{PER PARTITION LIMIT}} is greater than the page size the limit is > not respected for single or multi partitions queries. > The problem can be reproduced using the java driver with the following code: > {code} > session = cluster.connect(); > session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION > = {'class' : 'SimpleStrategy', 'replication_factor' : '1'}"); > session.execute("USE test"); > session.execute("DROP TABLE IF EXISTS test"); > session.execute("CREATE TABLE IF NOT EXISTS test (a int, b int, c > int, PRIMARY KEY(a, b))"); > PreparedStatement prepare = session.prepare("INSERT INTO test (a, b, > c) VALUES (?, ?, ?);"); > for (int i = 0; i < 5; i++) > for (int j = 0; j < 10; j++) > session.execute(prepare.bind(i, j, i + j)); > ResultSet rs = session.execute(session.newSimpleStatement("SELECT * > FROM test WHERE a = 1 PER PARTITION LIMIT 3") > .setFetchSize(2)); > for (Row row : rs) > { > System.out.println(row); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-11603) PER PARTITION LIMIT does not work properly for SinglePartition
[ https://issues.apache.org/jira/browse/CASSANDRA-11603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-11603: --- Reviewer: Alex Petrov Status: Patch Available (was: Open) > PER PARTITION LIMIT does not work properly for SinglePartition > -- > > Key: CASSANDRA-11603 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11603 > Project: Cassandra > Issue Type: Bug >Reporter: Benjamin Lerer >Assignee: Benjamin Lerer > Fix For: 3.x > > > When the {{PER PARTITION LIMIT}} is greater than the page size the limit is > not respected for single or multi partitions queries. > The problem can be reproduced using the java driver with the following code: > {code} > session = cluster.connect(); > session.execute("CREATE KEYSPACE IF NOT EXISTS test WITH REPLICATION > = {'class' : 'SimpleStrategy', 'replication_factor' : '1'}"); > session.execute("USE test"); > session.execute("DROP TABLE IF EXISTS test"); > session.execute("CREATE TABLE IF NOT EXISTS test (a int, b int, c > int, PRIMARY KEY(a, b))"); > PreparedStatement prepare = session.prepare("INSERT INTO test (a, b, > c) VALUES (?, ?, ?);"); > for (int i = 0; i < 5; i++) > for (int j = 0; j < 10; j++) > session.execute(prepare.bind(i, j, i + j)); > ResultSet rs = session.execute(session.newSimpleStatement("SELECT * > FROM test WHERE a = 1 PER PARTITION LIMIT 3") > .setFetchSize(2)); > for (Row row : rs) > { > System.out.println(row); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)