You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2016/05/03 15:05:13 UTC

[jira] [Created] (CASSANDRA-11704) len() function to retrieve the serialized size of a column / cell

Robert Stupp created CASSANDRA-11704:
----------------------------------------

             Summary: len() function to retrieve the serialized size of a column / cell
                 Key: CASSANDRA-11704
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11704
             Project: Cassandra
          Issue Type: New Feature
            Reporter: Robert Stupp
            Assignee: Robert Stupp
            Priority: Minor
             Fix For: 3.x


Sometimes it's helpful to select the serialized size of a column/cell for debugging purposes.

Having a function like {{len(x)}} that accepts every type and just returns the serialized size would be helpful and is more readable than pages of raw text or even blob output in cqlsh.

Such a function could take a whole column and also individual elements of non-frozen collections.

With such a function, one can build a UDA that produces a histogram over multiple CQL rows. But that's just an add-on that people can build (not considered for this ticket).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)