Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-12749

Update a specific property of a UDT in list<udt>, from a table.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Urgent
    • Resolution: Duplicate
    • None
    • Legacy/CQL
    • None
    • Development

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              raj.sairam02@gmail.com Rajashekhar Sheela
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: