Help Center/ AI DataLake/ devg/ Lance Development Guide/ Introduction to Lance/ Data Types Supported by Lance Tables
Updated on 2026-11-06 GMT+08:00

Data Types Supported by Lance Tables

Table 1 Data types supported by Lance

Lance Data Type

Description

null

Null type (no value)

bool

Boolean value (true/false)

int8, int16, int32, int64

Signed 8-bit, 16-bit, 32-bit, and 64-bit integers

uint8, uint16, uint32, uint64

Unsigned 8-bit, 16-bit, 32-bit, and 64-bit integers

halffloat

IEEE 754 half-precision floating-point number (16-bit)

float

IEEE 754 single-precision floating-point number (32-bit)

double

IEEE 754 double-precision floating-point number (64-bit)

string

Variable-length UTF-8 encoded string

large_string

Variable-length UTF-8 string (supporting large offsets)

binary

Variable-length binary data

large_binary

Variable-length binary data (supporting large offsets)

decimal:128:p:s

decimal:<Bit width>:<Precision>:<Scale>. The precision (p) is the total number of digits (up to 38 digits for Decimal128), and the scale (s) is the number of digits after the decimal point (0 ≤ s ≤ p).

decimal:256:p:s

decimal:<Bit width>:<Precision>:<Scale>. The precision (p) is the total number of digits (up to 76 digits for Decimal256), and the scale (s) is the number of digits after the decimal point (0 ≤ s ≤ p).

date32:day

Day-based date (days since epoch)

date64:ms

Millisecond-based date (milliseconds since epoch)

time32:s, time32:ms

Time in seconds since midnight, time in milliseconds since midnight

time64:us, time64:ns

Time in microseconds since midnight, time in nanoseconds since midnight

timestamp:unit:tz

timestamp:<Unit>:<Time zone>. The unit can be s (second), ms (millisecond), us (microsecond), or ns (nanosecond). The time zone is an IANA time zone string (such as UTC or America/New_York) or a hyphen (-) indicating no time zone.

duration:s, duration:ms, duration:us, duration:ns

Duration in seconds, duration in milliseconds, duration in microseconds, and duration in nanoseconds

struct

Nested type

list or list.struct (if the element is a struct)

Variable-length value list, variable-length struct value list

large_list or large_list.struct

Variable-length list (supporting large offsets), variable-length struct value list (supporting large offsets)

fixed_size_list:type:size

Fixed-length list, particularly applicable to vector embeddings. For example, fixed_size_list:float:128 indicates a fixed-length list of 128 floating point numbers.

fixed_size_binary:size

Fixed-size binary data. For example, fixed_size_binary:16 is used for MD5 hashing, and fixed_size_binary:32 is used for SHA-256 hashing.

dict:value_type:key_type:bool

Dictionary value type

It is in the format of dict:<Value type>:<Key type>:<Whether ordered>. For example, dict:string:int16:false indicates a dictionary-encoded string using int16 keys.

map

Key-value pair (Currently, only unordered keys are supported.)