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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.6, 1.2.0 beta 2
    • None
    • 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

            dbrosius David Brosius
            yuhanz Yuhan Zhang
            David Brosius
            Brandon Williams
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: