You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2019/07/17 18:04:00 UTC
[jira] [Updated] (CASSANDRA-15236) date, smallint, time, and
tinyint types should be fixed length
[ https://issues.apache.org/jira/browse/CASSANDRA-15236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Yeschenko updated CASSANDRA-15236:
------------------------------------------
Severity: Low
Complexity: Normal
Discovered By: Code Inspection
Bug Category: Parent values: Degradation(12984)Level 1 values: Performance Bug/Regression(12997)
Status: Open (was: Triage Needed)
> date, smallint, time, and tinyint types should be fixed length
> --------------------------------------------------------------
>
> Key: CASSANDRA-15236
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15236
> Project: Cassandra
> Issue Type: Bug
> Components: Local/SSTable
> Reporter: Aleksey Yeschenko
> Priority: Normal
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org