cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7563) UserType, TupleType and collections in UDFs
Date Sat, 15 Nov 2014 00:00:39 GMT

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

Tyler Hobbs commented on CASSANDRA-7563:
----------------------------------------

bq. Will try to improve readability of all tests in UFTest - some support in CQLTester would
be nice - especially after CASSANDRA-7813.

Yes, feel free to add some utility functions, options, etc to CQLTester if those would make
the tests clearer.

bq. 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).

Literals/constants will end up as Lists.Value, Sets.Value, etc.  In the Value classes, {{getWithProtocolVersion()}}
will use the current connection's protocol version to serialize the list as a ByteBuffer.
 Somthing similar happens for bound variables.

When we fetch them from tables, they get serialized based on the current connection's protocol
version _before_ functions are applied.  So the function needs to deserialize them using the
same protocol version.

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

Mime
View raw message