Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-3012

cassandra-cli list <CF> limit number of columns returned

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • None

    Description

      Right now in the CLI, running: list MyColumnFamily; will return the first 100 rows and quite easily the bazillion columns associated with those rows. Often times you're interested in just the row keys in the CF and less interested in all the columns or perhaps only a subset of columns.

      Hence it would be nice to have the limit option take a second, optional parameter limiting the number of columns to return:

      list MyCF[startkey:] limit 10, 30;

      would limit the columns per row to 30 while limiting the number of rows to 10 and starting at key "startkey". It should also take values 0 (no columns) and -1 (all columns). -1 should also be acceptable as a row limit also denoting "all rows" rather then requiring the user to type a large positive number.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dbrosius David Brosius Assign to me
            synfinatic Aaron Turner
            David Brosius
            Pavel Yaskevich
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment