[ 
https://issues.apache.org/jira/browse/CASSANDRA-6538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14328900#comment-14328900
 ] 

Sylvain Lebresne commented on CASSANDRA-6538:
---------------------------------------------

bq. we will have to check the datatype of providedArgs against BytesType

Well, no. As long as {{BytesType}} is declared as the type of argument, the 
type system ensure it will only be called on that. Really, what I'm suggesting 
is simply that you remove the change to {{Selection}} from your patch. 
Actually, that and the fact that you shouldn't use {{bb.array().length}} (as 
this return the length of the array backing the ByteBuffer but 1) that's *not* 
in general the same as the length of the ByteBuffer and 2) it's assuming that 
the ByteBuffer is backed by an array which is not an assumption it should 
make). Instead, just use {{ByteBuffer.remaining()}}.

> Provide a read-time CQL function to display the data size of columns and rows
> -----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-6538
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6538
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Johnny Miller
>            Priority: Minor
>              Labels: cql
>         Attachments: 6538.patch, CodeSnippet.txt, sizeFzt.PNG
>
>
> It would be extremely useful to be able to work out the size of rows and 
> columns via CQL. 



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

Reply via email to