title: How to retrieve the column having datatype as "list" from the table of Cassandra?
body: <p>I am using Scala to connect with Cassandra and applying my queries in it, I have created a simple table in Cassandra which has two columns row_id and row_values.
  row_id has datatype as "varchar" and row_values stores the List of elements. I inserted some random values in the Table and want to retrieve these.
  For creating table:         </p>
  
  <pre><code>CREATE TABLE Matrix1(row_id VARCHAR PRIMARY KEY, row_values LIST&lt;VARCHAR&gt;);
  </code></pre>
  
  <p>For Inserting Into the table:        </p>
  
  <pre><code>INSERT INTO Matrix1(row_id, row_values) VALUES ('abcd3', ['dsf23', 'fsf1','dsdf1']);
  </code></pre>
  
  <p>Now I want to retrieve values and print them using Scala, I am using a code to save values from query </p>
  
  <pre><code>val results: ResultSet = session.execute("SELECT * FROM Matrix1 where row_id = 'abcd3'") 
  </code></pre>
  
  <p>Now I want to print the "row_id" and "row_values"       </p>
  
  <pre><code>var rowid: String = null
  var rowval: List[String] = null
  for (row &lt;- results) {
        rowid = row.getString("row_id")
        rowval = row.getList("row_values")
        }   
  </code></pre>
  
  <p>with this code I am getting the values in "rowid" because it is a String, but there is an error for "rowval". How can I retrieve the column (List type) from the ResultSet?</p>