You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2018/09/12 14:45:00 UTC

[jira] [Commented] (CASSANDRA-14737) Limit the dependencies used by UDFs/UDAs

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

Jonathan Ellis commented on CASSANDRA-14737:
--------------------------------------------

I can confirm that DS is contributing a license to the Java driver code included here to the ASF.

> Limit the dependencies used by UDFs/UDAs
> ----------------------------------------
>
>                 Key: CASSANDRA-14737
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14737
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Minor
>              Labels: UDF
>             Fix For: 4.0
>
>
> In an effort to clean up our hygiene and limit the dependencies used by UDFs/UDAs, I think we should refactor the UDF code parts and remove the dependency to the Java Driver in that area without breaking existing UDFs/UDAs.
>   
> The patch is in [this branch|https://github.com/snazy/cassandra/tree/feature/remove-udf-driver-dep-trunk]. The changes are rather trivial and provide 100% backwards compatibility for existing UDFs.
>   
>  The prototype copies the necessary parts from the Java Driver into the C* source tree to {{org.apache.cassandra.cql3.functions.types}} and adopts its usages - i.e. UDF/UDA code plus {{CQLSSTableWriter}} + {{StressCQLSSTableWriter}}. The latter two classes have a reference to UDF's {{UDHelper}} and had to be changed as well.
>   
>  Some functionality, like type parsing & handling, is duplicated in the code base with this prototype - once in the "current" source tree and once for UDFs. However, unifying the code paths is not trivial, since the UDF sandbox prohibits the use of internal classes (direct and likely indirect dependencies).
>   
>  /cc [~jbellis] 
>   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org