Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:

      Description

      While a useful tool for education and simple tests, cassandra-cli is ultimately limted by the fact that column names and values are binary, (and eventually keys will be as well, see CASSANDRA-767).

      The current approach when writing consists of encoding column names as UTF8, and passing the value as a byte[] of the String parsed from the command. When performing a read, the column names outputted are the result of the toString() method of the comparator (the result of which is not always meaningful), and values are again treated as raw strings. This is almost certainly broken anywhere that the CF comparator is not UTF8Type and values are anything but strings.

      One possible approach would be to follow HBase's lead and simply allow binary values to be encoded as strings (see: http://wiki.apache.org/hadoop/Hbase/Shell).

      1. CASSANDRA-912-2.patch.txt
        24 kB
        Sean Bridges
      2. CASSANDRA-912.patch
        24 kB
        Sean Bridges

        Issue Links

          Activity

          Gavin made changes -
          Workflow patch-available, re-open possible [ 12752167 ] reopen-resolved, no closed status, patch-avail, testing [ 12755222 ]
          Gavin made changes -
          Workflow no-reopen-closed, patch-avail [ 12502625 ] patch-available, re-open possible [ 12752167 ]
          Jonathan Ellis made changes -
          Fix Version/s 0.7.1 [ 12315199 ]
          Jonathan Ellis made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Jonathan Ellis made changes -
          Fix Version/s 0.7.1 [ 12315199 ]
          Fix Version/s 0.7 [ 12314533 ]
          Sean Bridges made changes -
          Attachment CASSANDRA-912-2.patch.txt [ 12449164 ]
          Matthew F. Dennis made changes -
          Comment [ can you rebase the path the please? ]
          Matthew F. Dennis made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Jonathan Ellis made changes -
          Fix Version/s 0.7 [ 12314533 ]
          Sean Bridges made changes -
          Attachment CASSANDRA-912.patch [ 12445349 ]
          Sean Bridges made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Stu Hood made changes -
          Link This issue relates to CASSANDRA-1031 [ CASSANDRA-1031 ]
          Jonathan Ellis made changes -
          Summary First-class commandline interface for cassandra First-class commandline interface
          Jonathan Ellis made changes -
          Field Original Value New Value
          Summary cassandra-cli should handle binary column names/values, (and ultimately keys) or die First-class commandline interface for cassandra
          Eric Evans created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Eric Evans
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development