Analytics Engine Type | Python Type | NumPy Input Type | NumPy Output Type |
|---|---|---|---|
CHAR | str | NPY_UNICODE | NPY_STRING or NPY_UNICODE |
VARCHAR | str | • str, if size > 1024 • NPY_UNICODE, if size <= 1024 | NPY_STRING or NPY_UNICODE |
NCHAR | str | NPY_UNICODE | NPY_STRING or NPY_UNICODE |
NVARCHAR | str | • str, if size > 1024 • NPY_UNICODE, if size <= 1024 | NPY_STRING or NPY_UNICODE |
INTEGER1 | int | NPY_BYTE | NPY_BYTE |
INTEGER2 | int | NPY_SHORT | NPY_SHORT |
INTEGER4 | int | NPY_INT | NPY_INT |
INTEGER8 | int | NPY_LONGLONG | NPY_LONGLONG |
DECIMAL | Decimal | Decimal | Decimal* |
FLOAT8 | float | NPY_DOUBLE | NPY_DOUBLE |
FLOAT4 | float | NPY_FLOAT | NPY_FLOAT |
ANSIDATE | datetime.date | datetime.date | NPY_DATETIME |
TIME WITHOUT TIMEZONE | datetime.time | datetime.time | NPY_DATETIME |
TIME WITH TIMEZONE | timezone‑aware datetime.time | timezone‑aware datetime.time | timezone‑aware datetime.time* |
TIME WITH LOCAL TIMEZONE | datetime.time | datetime.time | NPY_DATETIME |
TIMSTAMP WITHOUT TIMEZONE | datetime.datetime | datetime.datetime | NPY_DATETIME |
TIMESTAMP WITH TIMEZONE | timezone‑aware datetime.datetime | timezone‑aware datetime.datetime | timezone‑aware datetime.datetime* |
TIMESTAMP WITH LOCAL TIMEZONE | datetime.datetime | datetime.datetime | NPY_DATETIME |
INTERVAL YEAR TO MONTH | int | NPY_INT | NPY_INT |
INTERVAL DAY TO SECOND | int | int | int* |
MONEY | float | NPY_DOUBLE | NPY_DOUBLE |
IPv4 | int | NPY_INT | NPY_INT |
IPv6 | int | int | int* |
UUID | int | NPY_ULONGLONG | NPY_LONGLONG |
Vector(TINYINT) | list of int | 2D NumPy array of the appropriate NPY_* integer type | 2D NumPy array of the appropriate NPY_* integer type |
Vector(SMALLINT) | list of int | 2D NumPy array of the appropriate NPY_* integer type | 2D NumPy array of the appropriate NPY_* integer type |
Vector(INTEGER) | list of int | 2D NumPy array of the appropriate NPY_* integer type | 2D NumPy array of the appropriate NPY_* integer type |
Vector(BIGINT) | list of int | 2D NumPy array of the appropriate NPY_* integer type | 2D NumPy array of the appropriate NPY_* integer type |
Vector(FLOAT4) | list of float | 2D NumPy array of NPY_FLOAT or NPY_DOUBLE | 2D NumPy array of NPY_FLOAT or NPY_DOUBLE |
Vector(FLOAT) | list of float | 2D NumPy array of NPY_FLOAT or NPY_DOUBLE | 2D NumPy array of NPY_FLOAT or NPY_DOUBLE |
Vector(DECIMAL) | list of decimal.Decimal objects | (not supported) | (not supported) |
BOOLEAN | bool | NPY_BOOL | NPY_BOOL |
BYTE VARBYTE | bytearray | • bytearray, if size > 1024 • NPY_VOID, if size <= 1024 | NPY_VOID |
*Python data type (not a NumPy array) is expected for this result type. | |||