[
https://issues.apache.org/jira/browse/CASSANDRA-13267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002284#comment-16002284
]
Sylvain Lebresne commented on CASSANDRA-13267:
----------------------------------------------
bq. Sylvain, here is a working proposal to be able to support pluggable generic
CQL functions
I apologize as I was arguably not very clear in my previous comment, but I
didn't mean to suggest we needed a full externally pluggable mechanism here. I
was merely talking about a more elegant/generic handling code-wise. Not that
externally pluggable is a bad thing in theory here, but the mechanism you
introduce is pretty inconsistent with how we're handling UDF in general, and I
think having many different and ad-hoc ways to deal with functions is a bad
idea: it imo makes things harder to use and maintain in general.
If we want and can devise a clean (and not overly complex) way to add UDF with
arbitrary types through the existing syntax ({{CREATE TYPE}}), then that would
certainly be fine by me, but that's a bit more work (it would require proper
upfront discussion of the syntax and semantic in particular). But I'm honestly
not a big fan of adding a fairly specific jar loading mechanism (which has
security concerns in particular) for that pretty specific use case.
> 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: [email protected]
For additional commands, e-mail: [email protected]