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

cassandra-cli: allow Double value type to be inserted to a column

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.1.6, 1.2.0 beta 2
    • Component/s: None
    • Labels:
      None

      Description

      as a cassandra-cli user, I'd like to set DoubleType value to cassandra through the cli tool, such that I could create test data from the cli tool easily.

      (similarly, I'd like to Double value available in the "assume" command: ex: assume pageCache comparator as double; )

      The email related to this issue:

      Hi all,

      I'm trying to manually adding some double values into a column family. From the Hector client, there's a DoubleSerializer.
      but looks like the cli tool is not providing a way to enter floating point values. here's the message I got:

      [default@video] set cateogry['1']['sport'] = float('0.5');
      Function 'float' not found. Available functions: bytes, integer, long, int, lexicaluuid, timeuuid, utf8, ascii, countercolumn.

      Is there a way to insert floating pointer value from the cli tool?

        Attachments

        1. 4661.txt
          1 kB
          Dave Brosius

          Activity

            People

            • Assignee:
              dbrosius David Brosius
              Reporter:
              yuhanz Yuhan Zhang
              Authors:
              David Brosius
              Reviewers:
              Brandon Williams
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: