What does this error mean?
This error is thrown if a problem occurs when parsing the body of a User Defined Function that is read in the schema.
Why does this error occur?
There are actually 2 types of problems that can lead to this:
- (Most Likely) UDFs are not enabled on this node (or java UDFs are enabled, but non-java aren't and it's a non-java one). As the UDF is in the schema, that means either the user enabled UDFs, inserted some, then disabled them, or there is inconsistent configuration between nodes (e.g. UDF can be disabled in the cassandra.yaml which is configured on a per-node basis).
- (Rare) An error occurs while compiling the body of that UDF
In theory, #2 should be pretty rare, because a UDF will never be inserted in the schema unless it can be successfully compiled. So #2 would imply that a user misconfigured the body definition directly in the system table.
How do you fix this error?
Look over the stack trace that accompanies this error. It should point you to which case is the cause. Case #1 can be remedied by changing the configuration in the cassandra.yaml. Case #2 can be remedied by adjusting the body definition in the system table.