Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16D8F1924D for ; Tue, 12 Apr 2016 21:58:26 +0000 (UTC) Received: (qmail 61426 invoked by uid 500); 12 Apr 2016 21:58:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 61368 invoked by uid 500); 12 Apr 2016 21:58:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 61336 invoked by uid 99); 12 Apr 2016 21:58:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Apr 2016 21:58:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 98FF62C1F5D for ; Tue, 12 Apr 2016 21:58:25 +0000 (UTC) Date: Tue, 12 Apr 2016 21:58:25 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10818) Evaluate exposure of DataType instances from JavaUDF class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238069#comment-15238069 ] Tyler Hobbs commented on CASSANDRA-10818: ----------------------------------------- [~snazy] the new changes look great! Would you mind rebasing on the latest trunk and re-running the tests? I think the rebase should be straightfoward except for one thing from CASSANDRA-7423: the {{CQLTester.userType()}} function now takes alternating {{fieldName, fieldValue}} arguments. Other than that, in {{CQL.textile}}, the changes section needs a new entry. I think that's everything. > 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)