[ 
https://issues.apache.org/jira/browse/CASSANDRA-7563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Stupp updated CASSANDRA-7563:
------------------------------------
    Attachment: 7563v7.txt

Attached v7 of the patch with the fix for that. Also added a unit test for that 
using {{USE}}.

After that fix:
{code}
cqlsh> use foo ;
cqlsh:foo> create type mytype (a int);
cqlsh:foo> create function bar (a mytype) RETURNS mytype LANGUAGE java AS 
$$return a;$$;
code=2200 [Invalid query] message="Non-frozen User-Defined types are not 
supported, please use frozen<>"
cqlsh:foo> create function bar (a frozen<mytype>) RETURNS frozen<mytype> 
LANGUAGE java AS $$return a;$$;
{code}


> UserType, TupleType and collections in UDFs
> -------------------------------------------
>
>                 Key: CASSANDRA-7563
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7563
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>             Fix For: 3.0
>
>         Attachments: 7563-7740.txt, 7563.txt, 7563v2.txt, 7563v3.txt, 
> 7563v4.txt, 7563v5.txt, 7563v6.txt, 7563v7.txt
>
>
> * is Java Driver as a dependency required ?
> * is it possible to extract parts of the Java Driver for UDT/TT/coll support ?
> * CQL {{DROP TYPE}} must check UDFs
> * must check keyspace access permissions (if those exist)



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

Reply via email to