You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Constance Eustace (JIRA)" <ji...@apache.org> on 2015/02/23 20:20:13 UTC
[jira] [Commented] (CASSANDRA-7395) Support for pure user-defined
functions (UDF)
[ https://issues.apache.org/jira/browse/CASSANDRA-7395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333684#comment-14333684 ]
Constance Eustace commented on CASSANDRA-7395:
----------------------------------------------
Will I be able to UDF the ORDER BY ?
My specific case is a sort of union UDT or string with unique sorting
example: cluster column is a UDT, with a UDT field isNum indicating the cluster value is a number and should be sorted against the other numbers in order in the results, but if not, all those either go before or after the numerically-sorted values.
This has come up a few times when trying to smush denormalized SQL schemas into single rowkey entities.
> Support for pure user-defined functions (UDF)
> ---------------------------------------------
>
> Key: CASSANDRA-7395
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7395
> Project: Cassandra
> Issue Type: New Feature
> Components: API, Core
> Reporter: Jonathan Ellis
> Assignee: Robert Stupp
> Labels: client-impacting, cql, docs-impacting
> Fix For: 3.0
>
> Attachments: 7395-dtest.txt, 7395.txt, udf-create-syntax.png, udf-drop-syntax.png
>
>
> We have some tickets for various aspects of UDF (CASSANDRA-4914, CASSANDRA-5970, CASSANDRA-4998) but they all suffer from various degrees of ocean-boiling.
> Let's start with something simple: allowing pure user-defined functions in the SELECT clause of a CQL query. That's it.
> By "pure" I mean, must depend only on the input parameters. No side effects. No exposure to C* internals. Column values in, result out. http://en.wikipedia.org/wiki/Pure_function
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)