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

Add 4 byte integer type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.0
    • None
    • any

    Description

      Cassandra currently lacks support for 4byte fixed size integer data type.

      Java API Hector and C libcassandra likes to serialize integers as 4 bytes in network order. Problem is that you cant use cassandra-cli to manipulate stored rows. Compatibility with other applications using api following cassandra integer encoding standard is problematic too.

      Because adding new datatype/validator is fairly simple I recommend to add int4 data type. Compatibility with hector is important because it is most used Java cassandra api and lot of applications are using it.

      This problem was discussed several times already
      http://comments.gmane.org/gmane.comp.db.hector.user/2125
      https://issues.apache.org/jira/browse/CASSANDRA-2585

      It would be nice to have compatibility with cassandra-cli and other applications without rewriting hector apps.

      Attachments

        1. apache-cassandra-1.0-dev-SNAPSHOT.jar
          1.69 MB
          Radim Kolar
        2. apache-cassandra-thrift-1.0-dev-SNAPSHOT.jar
          832 kB
          Radim Kolar
        3. cli_help.diff
          2 kB
          Igor Hrazdil
        4. drivers.diff
          4 kB
          Radim Kolar
        5. src.diff
          13 kB
          Radim Kolar
        6. test.diff
          11 kB
          Radim Kolar
        7. test.log
          31 kB
          Radim Kolar

        Activity

          People

            hsn Radim Kolar
            hsn Radim Kolar
            Radim Kolar
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: