[ https://issues.apache.org/jira/browse/CASSANDRA-7625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tyler Hobbs updated CASSANDRA-7625: ----------------------------------- Attachment: 7625.txt 7625.txt (and [branch|https://github.com/thobbs/cassandra/tree/CASSANDRA-7625]) always converts the result to a list in order to handle paged results. (While it would be nice if cqlsh actually utilized the paging instead of converting everything to a list, the formatting code requires knowing the max length of values in the results up front. At least with paged results, only cqlsh will suffer instead of the coordinator node.) > cqlsh not paging results > ------------------------ > > Key: CASSANDRA-7625 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7625 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Ryan McGuire > Assignee: Tyler Hobbs > Fix For: 2.1.0 > > Attachments: 7625.txt > > > If you try to make a selection of more data than can fit in a page, you'll > get this error: > {code} > cqlsh> select * from "Keyspace1"."Standard1"; > 'PagedResult' object does not support indexing > {code} > With debugging on, I get this traceback: > {code} > Traceback (most recent call last): > File "/home/automaton/fab/cassandra/bin/cqlsh", line 822, in onecmd > self.handle_statement(st, statementtext) > File "/home/automaton/fab/cassandra/bin/cqlsh", line 860, in > handle_statement > return custom_handler(parsed) > File "/home/automaton/fab/cassandra/bin/cqlsh", line 890, in do_select > self.perform_statement(statement, with_default_limit=with_default_limit) > File "/home/automaton/fab/cassandra/bin/cqlsh", line 895, in > perform_statement > with_default_limit=with_default_limit) > File "/home/automaton/fab/cassandra/bin/cqlsh", line 923, in > perform_simple_statement > self.print_result(rows, with_default_limit, cfMetaData) > File "/home/automaton/fab/cassandra/bin/cqlsh", line 935, in print_result > self.print_static_result(rows, cfMetaData) > File "/home/automaton/fab/cassandra/bin/cqlsh", line 961, in > print_static_result > colnames = rows[0]._fields > TypeError: 'PagedResult' object does not support indexing > {code} > Placing a limit on the query still works. -- This message was sent by Atlassian JIRA (v6.2#6252)