You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Rama Krishna (JIRA)" <ji...@apache.org> on 2018/07/16 22:26:00 UTC
[jira] [Commented] (CASSANDRA-14569) How to get the size of set in
cassandra
[ https://issues.apache.org/jira/browse/CASSANDRA-14569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545812#comment-16545812 ]
Rama Krishna commented on CASSANDRA-14569:
------------------------------------------
Team,
do we have any updated , i tried creating a UDF , but it throws a java.lang.NullPointerException", as i have null values in mu table, how to overcome the Null pointer exception .
below is the UDF created ,
CREATE FUNCTION test.getsize3(state set<bigint>)
CALLED ON NULL INPUT
RETURNS int
LANGUAGE java
AS $$
return state.size();
$$;
please let me know for any better inputs.
> How to get the size of set in cassandra
> ---------------------------------------
>
> Key: CASSANDRA-14569
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14569
> Project: Cassandra
> Issue Type: Task
> Components: Build
> Reporter: Rama Krishna
> Priority: Blocker
> Fix For: 3.0.x
>
>
> Team,
>
> i have a table , which has a column defined as set<bigint> , now i want to calculate the size of that column , if want see if i have any null values for that column .
> please let me know if we have any way to find out all the null values for that column .
> Many thanks in advance .
>
>
> Regards ,
> RK.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org