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

vincent royer edited comment on CASSANDRA-13267 at 5/10/17 9:13 AM:
--------------------------------------------------------------------

I have introduced the *IGenericFunction* to support hard-coded generic 
functions without adding more special cases to *Selectable* as you suggested.

Then, the jar loading mechanism allows to add some generic functions not 
provided in the Cassandra project (like my wierd toString() function, or any 
other...). I agree, it's more like an extension point rather than an UDF. Such 
extension could also be loaded from the configuration file or the CQL schema, 
or other things....

Regarding the security, anyone accessing the lib directory of C* can introduce 
a backdoor in any jar files, so, loading functions from a jar in this lib 
directory does not change the game, it's up to the C* admin to properly 
restrict access to the lib directory.




was (Author: vroyer59):
I have introduced the *IGenericFunction* to support hard-coded generic 
functions without adding more special cases to 'Selectable' as you suggested.

Then, the jar loading mechanism allows to add some generic functions not 
provided in the Cassandra project (like my wierd toString() function, or any 
other...). I agree, it's more like an extension point rather than an UDF. Such 
extension could also be loaded from the configuration file or the CQL schema, 
or other things....

Regarding the security, anyone accessing the lib directory of C* can introduce 
a backdoor in any jar files, so, loading functions from a jar in this lib 
directory does not change the game, it's up to the C* admin to properly 
restrict access to the lib directory.



> Add new CQL functions
> ---------------------
>
>                 Key: CASSANDRA-13267
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13267
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL
>            Reporter: vincent royer
>            Priority: Trivial
>              Labels: features
>             Fix For: 3.0.x
>
>         Attachments: 0001-CASSANDRA-13267-Add-CQL-functions.patch, 
> 0001-CASSANDRA-13267-generic-function.patch
>
>
> Introduce 2 new CQL functions :
> -toString(x) converts a column to its string representation.
> -toJsonArray(x, y, z...) generates a JSON array of JSON string.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to