You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Rajashekhar Sheela (JIRA)" <ji...@apache.org> on 2016/10/05 07:21:21 UTC

[jira] [Commented] (CASSANDRA-12749) Update a specific property of a UDT in set, from a table.

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

Rajashekhar Sheela commented on CASSANDRA-12749:
------------------------------------------------

RSHEELA-M-L0XS:haproxy rajashekhar$ cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.2.3 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.

> Update a specific property of a UDT in set<udt>, from a table.
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-12749
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12749
>             Project: Cassandra
>          Issue Type: Wish
>          Components: CQL
>         Environment: Development
>            Reporter: Rajashekhar Sheela
>            Priority: Critical
>             Fix For: 3.0.6
>
>
> I have a table with set<udt> as following...
> CREATE TABLE IF NOT EXISTS CustomTemplate (
>   name text,
>   templateId uuid,
>   serviceId uuid,
>   tenants set<uuid>,
>   templateXml  text,
>   xpath  text,
>   parameters list<frozen<TemplateParameter>>,
>   PRIMARY KEY (templateId)
> );
> CREATE TYPE IF NOT EXISTS TemplateParameter (
>   name text,
>   label text,
>   type text,
>   displayType text,
>   allowedValues list<text>
> );
> Sample Data:
> cqlsh:skyfall_customtemplate> select * from customtemplate ;
>  templateid                           | name            | parameters                                                                               | serviceid                            | templatexml | tenants | xpath
> --------------------------------------+-----------------+------------------------------------------------------------------------------------------+--------------------------------------+-------------+---------+--------
>  afd01de6-bba9-4417-ab79-6851077f2f84 | testMyTemplate2 | [{name: 'X_PARAM', label: null, type: 'String', displaytype: null, allowedvalues: null}] | 82d565cb-d286-4523-a377-add72af9b23f |         xml |    null | /xpath
> Requirement is:
> --------------------
> Update "displayType:" of the TemplateParameter whose name='X_PARAM' and templateId=afd01de6-bba9-4417-ab79-6851077f2f84.
> Not able to do this, please let know, how it can be done, if it is already possible.
> Thanks.



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