I was trying
cqlsh:my_keyspace> CREATE FUNCTION IF NOT EXISTS len(input blob)
CALLED ON NULL INPUT
RETURNS int LANGUAGE java AS '
return input.length();';
Error:
InvalidRequest: Error from server: code=2200 [Invalid query] message="Java source compilation failed:
Line 2: The method length() is undefined for the type ByteBuffer
if I change input to text it is working..is there anything defined for bytebuffer type ? I need to find length of blob column from table..
is there any way to find out it either in cassandra spark or by any tool ?
I am new to cassandra world please help me out for this..