DSE Graph data types
DSE Graph has many data types that are aligned with CQL data types. For search indexes, see the relationship between DSE Graph and Solr data types.
| DSE Graph Data Type | Description | Schema example | ||
|---|---|---|---|---|
bigint  | 
64-bit signed long  | 
  | 
||
blob  | 
Arbitrary bytes (no validation), expressed as base64 strings 
 | 
  | 
||
boolean  | 
True or false  | 
  | 
||
date  | 
Date, in the format of '1940' or '1940-01-01'.  | 
  | 
||
decimal  | 
Variable-precision decimal 
  | 
  | 
||
double  | 
64-bit IEEE-754 floating point  | 
  | 
||
duration  | 
Time duration in milliseconds  | 
  | 
||
float  | 
32-bit IEEE-754 floating point  | 
  | 
||
inet  | 
IP address string in IPv4 or IPv6 format, used by the Python   | 
  | 
||
int  | 
32-bit signed integer  | 
  | 
||
linestring  | 
Used for geospatial and Cartesian linestrings (double …. points)  | 
 `schema.propertyKey('road').Linestring().withBounds(-1, -1, 1, 1).create() (Cartesian)`
 | 
||
point  | 
Used for geospatial and Cartesian points (double x, double y); note that this corresponds to longitude/latitude, in that order, for mapping geospatial points.  | 
 `schema.propertyKey('coordinates').Point().withBounds(-1, -1, 1, 1).create() (Cartesian)`
 | 
||
polygon  | 
Used for geospatial and Cartesian polygons (double …. points)  | 
 `schema.propertyKey('block').Polygon().withBounds(-1, -1, 1, 1).create() (Cartesian)`
 | 
||
smallint  | 
2 byte integer  | 
  | 
||
text  | 
String or UTF-8 encoded string  | 
  | 
||
time  | 
Time in the format of '10:00:00' or '10:00'.  | 
  | 
||
timestamp  | 
Date, or date plus time, encoded as 8 bytes since epoch. The timestamp data type must be specified as a valid DSE database timestamp: 
 | 
  | 
||
uuid  | 
A UUID in standard UUID format or   | 
  | 
||
varint  | 
Arbitrary-precision integer  | 
  |