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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Local/SSTable
    • Labels:
      None
    • Bug Category:
      Degradation - Performance Bug/Regression
    • Severity:
      Low
    • Complexity:
      Normal
    • Discovered By:
      Code Inspection
    • Platform:
      All
    • Impacts:
      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

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

              Dates

              • Created:
                Updated: