Hi Piotr,
Had already tried that but unfortunately it did not work.
It complained that the keys of the map were not valid column names (or something to the effect).
I have finally "solved" the problem using simple embedded types (no UDTs
because I found a report that these were working for the Java driver).
So for anyone that might need this, the following changes are required:
1. CQL create with a column of
... dummies MAP<TEXT, FROZEN<MAP<TEXT, TEXT> >>,
2. Getting the data from the CassandraRow
row.getMap[String, Map[String, String]]("dummies")
3. Saving data
val ndummies: Map[String, Map[String, String]]
val updates = Map(
.... ("dummies" -> ndummies),....)
CassandraRow.fromMap(updates)
and then save the CassandraRow via the RDD interface
Thanks for the help Piotr.
HTS,
HF
On Tuesday, 31 March 2015 09:03:14 UTC+1, Piotr Kołaczkowski wrote:
> Use UDTValue.fromMap.
>
>
>
>
>
>
>
>
>
> PIOTR KOŁACZKOWSKI
> Lead Software Engineer, DSE Analytics |
pkol...@datastax.com
>
>
>
>