[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to