title: What is the correct way to insert data into a Cassandra UDT?
body: <p>Here is the type I have created,</p>
  
  <pre><code>CREATE TYPE urs.dest (
  destinations frozen&lt;list&lt;text&gt;&gt;);
  </code></pre>
  
  <p>And here is the table ,</p>
  
  <pre><code>CREATE TABLE urs.abc (
  id int,
  locations map&lt;text, frozen&lt;dest&gt;&gt;,
  PRIMARY KEY(id));
  </code></pre>
  
  <p>When I try to insert values from cqlsh,</p>
  
  <p>try 1:</p>
  
  <pre><code>insert into urs.abc (id, locations ) values (1, {'coffee': { 'abcd', 'efgh'}});
  </code></pre>
  
  <p>try 2:</p>
  
  <pre><code>insert into urs.abc (id, locations ) values (1, {'coffee': ['abcd', 'efgh']});
  </code></pre>
  
  <p>try 3:</p>
  
  <pre><code>insert into urs.abc (id) values (1);
  update urs.abc set locations = locations + {'coffee': {'abcd','qwer'}} where id=1;
  </code></pre>
  
  <p>I'm getting the below error,</p>
  
  <pre><code>Error from server: code=2200 [Invalid query] message="Invalid map literal for locations: value {'abcd', 'qwer'} is not of type frozen&lt;dest&gt;"
  </code></pre>
  
  <p>Can anyone please let me know the correct way to add value to my UDT?</p>