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

date, smallint, time, and tinyint types should be fixed length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • Local/SSTable
    • None
    • Degradation - Performance Bug/Regression
    • Low
    • Normal
    • Code Inspection
    • All
    • None

    Description

      When adding the 4 types above (date, smallint, time, and tinyint) we forgot to override their valueLengthIfFixed() method. As a result of this omission, all 4 types now require an extra byte when serialized - to encode length - even ByteType (tinyint).

      In the next major (4.0 or 5.0?) we should fix this inefficiency.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aleksey Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: