Spark supported types
This table maps CQL types to Scala types. All CQL types are supported by the DataStax Enterprise Spark integration. Other type conversions might work, but cause loss of precision or not work for all values. Most types are convertible to strings. You can convert strings that conform to the CQL standard to numbers, dates, addresses or UUIDs. You can convert maps to or from sequences of key-value tuples.
CQL Type | Scala Type |
---|---|
ascii |
String |
bigint |
Long |
blob |
|
boolean |
Boolean |
counter |
Long |
decimal |
|
double |
Double |
float |
Float |
inet |
|
int |
Int |
list |
Vector, List, Iterable, Seq, |
|
|
map |
Map, |
|
Point |
|
Polygon |
set |
|
text, varchar |
String |
timestamp |
|
|
|
|
|
varint |
|
nullable values |
Option |