Supported Datatypes

Spark and TileDB have slight variations in their supported datatypes. This table below shows a mapping between the (core) TileDB and Spark datatypes for easy reference.

TileDB DataType

Spark SQL Datatype

TILEDB_INT8

BYTE

TILEDB_UINT8

SHORT

TILEDB_INT16

SHORT

TILEDB_UINT16

INTEGER

TILEDB_INT32

INTEGER

TILEDB_UINT32

LONG

TILEDB_INT64

LONG

TILEDB_UINT64

LONG

TILEDB_FLOAT32

FLOAT

TILEDB_FLOAT64

DOUBLE

TILEDB_DATETIME_DAY

DATE

TILEDB_DATETIME_MS

TIMESTAMP