Spark supported types
Spark supported CQL types are mapped to Scala types.
CQL Type | Scala Type |
---|---|
ascii | String |
bigint | Long |
blob | ByteBuffer, Array |
boolean | Boolean |
counter | Long |
decimal | BigDecimal, java.math.BigDecimal |
double | Double |
float | Float |
inet | java.net.InetAddress |
int | Int |
list | Vector, List, Iterable, Seq, IndexedSeq, java.util.List |
map | Map, TreeMap, java.util.HashMap |
set | Set, TreeSet, java.util.HashSet |
text, varchar | String |
timestamp | Long, java.util.Date, java.sql.Date, org.joda.time.DateTime |
timeuuid | java.util.UUID |
uuid | java.util.UUID |
varint | BigInt, java.math.BigInteger |
nullable values | Option |