[jira] [Comment Edited] (CASSANDRA-7563) UserType, TupleType and collections in UDFs

2014-11-22 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-7563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14221922#comment-14221922
 ] 

Robert Stupp edited comment on CASSANDRA-7563 at 11/22/14 11:44 AM:


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 frozenmytype) RETURNS frozenmytype 
LANGUAGE java AS $$return a;$$;
cqlsh:foo 
{code}



was (Author: snazy):
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 frozenmytype) RETURNS frozenmytype 
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)


[jira] [Comment Edited] (CASSANDRA-7563) UserType, TupleType and collections in UDFs

2014-11-14 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-7563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14213070#comment-14213070
 ] 

Robert Stupp edited comment on CASSANDRA-7563 at 11/14/14 11:33 PM:


I've created the ticket (and updated JAVA-502 for that).
Will try to improve readability of all tests in {{UFTest}} - some support in 
CQLTester would be nice - especially after CASSANDRA-7813.
Another unit test is no problem :)

Regarding that protocol version issue. Maybe I'm a bit too tired, but isn't 
that problem a bit more complex? UDFs can get parameters from CQL statements as 
'constants', from CQL bound variables (I think these depend on the protocol 
version) and from tables (guess these are always 
{{ProtocolVersion.NEWEST_SUPPORTED}}).

Edit: Good catch with that protocol version thing :)


was (Author: snazy):
I've created the ticket (and updated JAVA-502 for that).
Will try to improve readability of all tests in {{UFTest}} - some support in 
CQLTester would be nice - especially after CASSANDRA-7813.
Another unit test is no problem :)

Regarding that protocol version issue. Maybe I'm a bit too tired, but isn't 
that problem a bit more complex? UDFs can get parameters from CQL statements as 
'constants', from CQL bound variables (I think these depend on the protocol 
version) and from tables (guess these are always 
{{ProtocolVersion.NEWEST_SUPPORTED}}).

 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


 * 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)


[jira] [Comment Edited] (CASSANDRA-7563) UserType, TupleType and collections in UDFs

2014-10-12 Thread Robert Stupp (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-7563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14168653#comment-14168653
 ] 

Robert Stupp edited comment on CASSANDRA-7563 at 10/12/14 1:42 PM:
---

Initial version for user-types, tuple-types, lists, sets, maps as argument  
return types available in linked git branch.
EDIT: working with Java + JavaScript UDFs


was (Author: snazy):
Initial version for user-types, tuple-types, lists, sets, maps as argument  
return types available in linked git branch.

 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


 * 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)