You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2016/03/28 12:59:25 UTC

[jira] [Updated] (CASSANDRA-10818) Evaluate exposure of DataType instances from JavaUDF class

     [ https://issues.apache.org/jira/browse/CASSANDRA-10818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Stupp updated CASSANDRA-10818:
-------------------------------------
    Status: Patch Available  (was: Open)

Patch introduces a {{UDFContext}} that allows to create UDT and tuple values for the return type, any argument type and by UDT name and tuple type definition.

[branch|https://github.com/apache/cassandra/compare/trunk...snazy:10818-udf-expose-types-trunk?expand=1]
[testall|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-10818-udf-expose-types-trunk-testall/lastCompletedBuild/testReport/]
[dtest|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-10818-udf-expose-types-trunk-dtest/lastCompletedBuild/testReport/]

> Evaluate exposure of DataType instances from JavaUDF class
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-10818
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10818
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: CQL
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Minor
>             Fix For: 3.x
>
>
> Currently UDF implementations cannot create new UDT instances.
> There's no way to create a new UT instance without having the {{com.datastax.driver.core.DataType}} to be able to call {{com.datastax.driver.core.UserType.newValue()}}.
> From a quick look into the related code in {{JavaUDF}}, {{DataType}} and {{UserType}} classes it looks fine to expose information about return and argument types via {{JavaUDF}}.
> Have to find some solution for script UDFs - but feels doable, too.



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