You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Henry Manasseh (JIRA)" <ji...@apache.org> on 2016/04/08 08:40:25 UTC

[jira] [Commented] (CASSANDRA-8488) Filter by UDF

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

Henry Manasseh commented on CASSANDRA-8488:
-------------------------------------------

It seems the UDF could be wrapped by a subclass of CustomExpression (or the new UserExpression) let's say UDTWrappedExpression which returns a boolean and injects the wrapped expression into the RowFilter. Would that work as a starting point for the design?

For the CQL changes: would something like this work for the syntax?

select * from my_table where my_filter_udf(col1, col2, 'some constraint defined as an UDF parameter - text or list<text>, etc.')

For the constraint, the UDF would need to be extended to support literals (CASSANDRA-10783).

Is that in line with what you were thinking?

> Filter by UDF
> -------------
>
>                 Key: CASSANDRA-8488
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8488
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: CQL, Local Write-Read Paths
>            Reporter: Jonathan Ellis
>              Labels: client-impacting, cql, udf
>             Fix For: 3.x
>
>
> Allow user-defined functions in WHERE clause with ALLOW FILTERING.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)