ADBC Driver for Kinetica ¶
The Kinetica ADBC driver is developed and maintained by Kinetica DB, Inc.Driver Version 7.2.1 Release Date 2026-11-24 Tested With Kinetica 7.2
This driver provides access to Kinetica , a GPU-accelerated database for real-time analytics. It is developed by Kinetica DB, Inc.; the ADBC Driver Foundry builds and distributes it for Linux, macOS, and Windows.
Query results come back from the server as Arrow, and bulk ingest is routed to the worker ranks that hold each row.
Installation¶
The Kinetica driver can be installed with dbc :
dbc install kinetica
For Python, the driver is also published as a package that bundles it:
pip install adbc-driver-kinetica
Connecting¶
To use the driver, give the URL of a Kinetica server as the uri option, with
username and password.
from adbc_driver_manager import dbapi
conn = dbapi.connect(
driver="kinetica",
db_kwargs={
"uri": "http://localhost:9191",
"username": "admin",
"password": "...",
},
)
Note: The example above is for Python using the adbc-driver-manager package but the process will be similar for other driver managers.
The uri may also be a kinetica:// URI, by which a driver manager given
only the URI knows to load this driver:
kinetica://[user[:password]@]host[:port][,host[:port]...][/path][?name=value&...]
It connects over HTTPS unless it says tls=false. Every other parameter is
an option under its own name, such as kinetica.query.max_rows=1000, and an
option set directly takes precedence over the URI’s. Several hosts are an HA
ring, tried in the order given.
conn = dbapi.connect(
"kinetica://localhost:9191?tls=false",
db_kwargs={"username": "admin", "password": "..."},
)
Kinetica’s own options are named kinetica.*; see Options.
Feature & Type Support¶
| Feature | Kinetica | |
|---|---|---|
|
Bind Parameters |
✅ |
|
|
Bulk Ingestion |
Create |
✅ |
|
Append |
✅ |
|
|
Create/Append |
✅ |
|
|
Replace |
✅ |
|
|
Temporary Table |
❌ |
|
|
Target Catalog |
❌ |
|
|
Target Schema |
✅ |
|
|
Non-nullable fields are marked NOT NULL |
❌ |
|
|
Catalog (GetObjects) |
depth=catalogs |
✅ |
|
depth=db_schemas |
✅ |
|
|
depth=tables |
✅ |
|
|
depth=columns (all) |
✅ |
|
|
Get Parameter Schema |
✅ |
|
|
Get Table Schema |
✅ |
|
|
Prepared Statements |
✅ |
|
|
Transactions |
❌ |
|
Types¶
Database to Arrow¶
| Database Type | Kinetica |
|---|---|
|
BIGINT |
int64 |
|
BLOB |
binary |
|
BOOLEAN |
bool |
|
DATE |
|
|
DATETIME |
timestamp[ms] [2] |
|
DOUBLE PRECISION |
double |
|
INT |
int32 |
|
NUMERIC |
|
|
REAL |
float |
|
SMALLINT |
int16 |
|
TIME |
|
|
TIMESTAMP |
timestamp[ms] (with time zone), timestamp[us] ⚠️ [2] [3] [7] [8] |
|
TIMESTAMP WITH TIME ZONE |
❌ [9] |
|
TIMESTAMP(p) (4 <= p <= 6) |
❌ |
|
TIMESTAMP(p) (4 <= p <= 6) WITH TIME ZONE |
❌ |
|
TIMESTAMP(p) (7 <= p <= 9) |
❌ |
|
TIMESTAMP(p) (7 <= p <= 9) WITH TIME ZONE |
❌ |
|
VARBINARY |
binary |
|
VARCHAR |
string |
Arrow to Database¶
| Arrow Type | Kinetica Type | |
|---|---|---|
| Bind | Ingest | |
|
binary |
VARBINARY |
|
|
binary_view |
VARBINARY |
|
|
bool |
BOOLEAN |
|
|
date32[day] |
DATE [2] |
DATE |
|
decimal128 |
NUMERIC |
NUMERIC ⚠️ [10] |
|
double |
DOUBLE PRECISION |
|
|
fixed_size_binary |
VARBINARY |
|
|
float |
REAL |
|
|
halffloat |
REAL |
(NA/not tested) |
|
int16 |
SMALLINT |
|
|
int32 |
INT |
|
|
int64 |
BIGINT |
|
|
large_binary |
VARBINARY |
|
|
large_string |
VARCHAR |
|
|
string |
VARCHAR |
|
|
string_view |
VARCHAR |
|
|
time32[ms] |
TIME |
|
|
time32[s] |
TIME |
|
|
time64[ns] |
TIME ⚠️ [6] |
|
|
time64[us] |
TIME ⚠️ [6] |
|
|
timestamp[ms] |
DATETIME [2] |
TIMESTAMP(3) [2] |
|
timestamp[ms] (with time zone) |
TIMESTAMP [2] |
TIMESTAMP(3) WITH TIME ZONE [2] |
|
timestamp[ns] |
||
|
timestamp[ns] (with time zone) |
||
|
timestamp[s] |
DATETIME [2] |
TIMESTAMP(0) [2] |
|
timestamp[s] (with time zone) |
TIMESTAMP [2] |
TIMESTAMP(0) WITH TIME ZONE [2] |
|
timestamp[us] |
||
|
timestamp[us] (with time zone) |
||
Options¶
Options are set on the database, a connection or a statement, as each says
below. Any option set on the database can also be given as a parameter of a
kinetica:// URI, under the same name; one set directly takes precedence. A
boolean takes true or false.
Connection Options¶
kinetica.session_idType: string. Default: (empty)
The server session whose SQL
#nametemp tables a connection uses. Connections given the same session share its temp tables, and the caller drops it when done, with Kinetica’s/drop/session. Empty gives each connection a session of its own, dropped when the connection closes.Set on the database.
kinetica.impersonate_userType: string. Default: (empty)
The user each connection acts as from the start, which the server reads as impersonation.
SET USERandEXECUTE AS USERstep into another user from there, andREVERTcomes back to this one.Set on the database.
kinetica.fake_transactionsType: boolean. Default:
falseAccept the transaction calls, such as turning autocommit off, and do nothing, rather than refuse them. Kinetica has no transactions, so a rollback undoes nothing either way; this decides whether a caller is told.
Set on the database or a connection.
kinetica.replicationValues:
sync,sync_parallel,async,async_parallel,none. Default: (the server’s)How far a write must have replicated across an HA ring before the server answers. The server’s own spellings, such as
REPL_SYNC, are accepted too.Set on the database.
kinetica.no_syncType: boolean. Default:
falseShorthand for a
kinetica.replicationofnone.kinetica.replicationwins where both are given.Set on the database.
kinetica.primary_urlType: string. Default: the first address of the URI
The cluster that failover returns to once it is reachable again.
Set on the database.
kinetica.failoverType: boolean. Default:
trueFail over to another cluster of the HA ring when one fails.
Set on the database.
kinetica.failover_orderValues:
sequential,random. Default:sequentialThe order the clusters of the ring are tried in when one fails.
Set on the database.
kinetica.auto_discoveryType: boolean. Default:
trueDiscover the rest of the HA ring from the cluster first reached. Off, only the addresses the URI gives are used.
Set on the database.
kinetica.failback_poll_intervalType: integer. Default:
5Seconds between polls of the primary cluster, which is how a connection that failed away from it comes back.
Set on the database.
kinetica.hostname_regexType: string. Default: (empty)
A regular expression choosing which of a worker’s addresses to use where it publishes more than one. Bulk ingest goes to the addresses it keeps.
Set on the database.
kinetica.request_timeoutType: integer. Default:
0Seconds a request may take before it is abandoned;
0for no limit.Set on the database.
kinetica.connect_timeoutType: integer. Default:
5Seconds to wait for the server to answer.
Set on the database.
kinetica.initial_connect_timeoutType: integer. Default:
0Seconds to spend reaching a cluster for the first time before trying the next.
Set on the database.
kinetica.max_retriesType: integer. Default:
5How many times a request is sent again: one that failed on the wire, or one a cluster that is just back online refused while it was still starting.
Set on the database.
kinetica.snappyType: boolean. Default:
trueCompress bulk record requests with Snappy.
Set on the database.
kinetica.trust_store_pathType: string. Default: (empty)
The trust store holding the certificate authority that signed the server’s certificate, for an
httpsconnection.Set on the database.
kinetica.trust_store_passwordType: string. Default: (empty)
The trust store’s password. It can be set but not read back.
Set on the database.
kinetica.bypass_ssl_cert_checkType: boolean. Default:
falseAccept the server’s certificate without checking it. Prefer a trust store wherever the certificate can be trusted.
Set on the database.
kinetica.log_levelValues:
off,error,warn,info,debug,trace. Default:offHow much the driver logs. A host program that has installed a logger of its own keeps it.
Set on the database.
kinetica.log_pathType: string. Default: (empty)
The file the log is appended to. Empty writes to standard error.
Set on the database.
Authentication Options¶
kinetica.auth_methodValues:
password,oauth. Default:passwordHow the connection signs in: with
usernameandpassword, or with an OAuth bearer token.Set on the database.
kinetica.oauth_tokenType: string. Default: (empty)
A bearer token the caller already holds, presented as it is. The driver does not acquire one.
Set on the database.
kinetica.oauth_grantValues:
client_credentials,authorization_code,device_code,refresh_token,token-exchange,jwt-bearer. Default: (none)How the driver acquires a bearer token, when the caller does not hold one. Each grant’s URN, as its RFC names it, is accepted too.
Set on the database.
kinetica.auth_providerValues:
entra,okta,command. Default: (none)An identity provider whose own parameters the driver turns into the generic ones (
entra,okta), orcommand, which runskinetica.oauth.commandand takes what it prints as the token. The command runs undersh -c, orcmd.exe /con Windows, with the privileges of the process holding the connection, so it must never come from untrusted input.entraandoktaare each implied by a parameter only they read (kinetica.oauth.tenant_id,kinetica.oauth.application_id_uri,kinetica.oauth.okta_domain), so naming one is an override rather than a requirement.Set on the database.
kinetica.token_name_claimType: string. Default:
sub(preferred_usernameunderentra)The claim of a bearer token the user name is read from. The name a token gives takes precedence over
username.Set on the database.
kinetica.oauth_token_cacheValues:
memory,none. Default:memorymemoryshares one token between every connection of the process that would ask for the same one;nonesigns in for each connection.Set on the database.
kinetica.oauth.<name>Type: string.
What an OAuth flow needs:
issuer,token_url,authorize_url,device_url,client_id,client_secret,scope,audience,subject,refresh_token,subject_token,subject_token_type,private_key,private_key_file,key_idandalgorithm. Given an issuer and nothing else, the endpoints are read from its OpenID Connect discovery document.A provider’s own parameters are named the same way:
commandandcommand_timeout_seconds(default60) forcommand;tenant_id,application_id_uri(orresource) andauthority_hostforentra;okta_domainandauth_server_idforokta.Set on the database.
Query Options¶
kinetica.query.batch_sizeType: integer. Default:
20000Rows requested from the server per page of a result, capped at the server’s own limit.
Set on a statement.
kinetica.query.max_rowsType: integer. Default: (none)
The most rows a read hands back, however many the result holds. Unset or negative hands back all of them.
Set on the database, a connection or a statement; the statement’s own wins.
kinetica.query.use_key_lookupType: boolean. Default:
falseSend a read that pins every key column of a table to the rank holding its row, rather than to the SQL engine. The rows are the same either way;
kinetica.key_lookupsays which way the last read went.Set on the database, a connection or a statement; the statement’s own wins.
These are sent with every statement, but only when set, so an unset one leaves the server’s own default in place.
kinetica.query.cost_based_optimizationType: boolean. Default: (the server’s)
Whether the planner costs its alternatives.
Set on the database or a connection.
kinetica.query.rule_based_optimizationType: boolean. Default: (the server’s)
Whether the rule-based rewrites run.
Set on the database or a connection.
kinetica.query.ssq_optimizationType: boolean. Default: (the server’s)
Whether scalar subqueries are optimized.
Set on the database or a connection.
kinetica.query.distributed_operationsType: boolean. Default: (the server’s)
Whether data may be resharded or replicated among the ranks, so that a join, a set operation or an intermediate result over data not already distributed compatibly can run. Off, such a query fails.
Set on the database or a connection.
kinetica.query.parallel_executionType: boolean. Default: (the server’s)
Whether the steps of a plan may run at once.
Set on the database or a connection.
kinetica.query.plan_cacheType: boolean. Default: (the server’s)
Whether a plan already worked out may be reused.
Set on the database or a connection.
kinetica.query.results_cachingType: boolean. Default: (the server’s)
Whether a result already worked out may be reused.
Set on the database or a connection.
kinetica.query.ignore_existing_pkType: boolean. Default: (the server’s)
Whether a row whose primary key is already in the table is passed over rather than refused.
Set on the database or a connection.
kinetica.query.update_on_existing_pkType: boolean. Default: (the server’s)
Whether such a row replaces the one already in the table.
Set on the database or a connection.
kinetica.query.validate_change_columnType: boolean. Default: (the server’s)
Whether a column being changed is checked first.
Set on the database or a connection.
kinetica.query.use_approx_count_distinctType: boolean. Default: (the server’s)
Whether distinct values may be counted approximately.
Set on the database or a connection.
kinetica.query.ttlType: integer. Default: (the server’s)
Minutes to keep what a statement makes.
Set on the database or a connection.
kinetica.query.paging_table_ttlType: integer. Default:
20Minutes the server keeps the result a paged read works through. The driver clears it as soon as the read is done, so this only matters for a read left unfinished.
Set on the database or a connection.
Ingest Options¶
kinetica.ingest.error_modeValues:
abort,skip,permissive. Default:abortWhat to do about a row the workers cannot take:
abortfails the batch it is in;skiptakes the rest of the batch without it;permissivetakes the rest and asks the server to say what was wrong with each row it refused.Set on the database or a connection.
kinetica.ingest.truncate_stringsType: boolean. Default:
falseCut a string too long for its column to fit, rather than refusing it.
Set on the database or a connection.
kinetica.ingest.rows_per_insertionType: integer. Default:
50000Rows sent to a worker at a time.
Set on the database or a connection.
kinetica.ingest.multihead_insertType: boolean. Default:
trueSend rows straight to the worker ranks that hold them. Off, they go through the head rank.
Set on the database or a connection.
The options below read a local file loaded by
INSERT INTO t SELECT * FROM FILE."data.csv". A statement can also give each
in its own WITH OPTIONS (...), as file read and the option’s last part
(file read limit = 100), which beats the connection’s.
kinetica.ingest.file.delimiterType: string. Default: (from the file’s extension)
The field separator. Unset, it is
|for.psv, a tab for.tsv, and otherwise a comma. A tab may be written\t.Set on the database or a connection.
kinetica.ingest.file.quote_charType: string. Default:
"The quote character.
Set on the database or a connection.
kinetica.ingest.file.escape_charType: string. Default: (none)
The escape character. Unset, a quote is escaped by doubling it.
Set on the database or a connection.
kinetica.ingest.file.comment_charType: string. Default: (none)
A line starting with this is skipped.
Set on the database or a connection.
kinetica.ingest.file.has_headerType: boolean. Default:
trueWhether the first line names the columns.
Set on the database or a connection.
kinetica.ingest.file.null_stringType: string. Default: (none)
The text that stands for a null. Unset, an empty field is null.
Set on the database or a connection.
kinetica.ingest.file.skipType: integer. Default:
0Rows to pass over at the start of each file, after its header.
Set on the database or a connection.
kinetica.ingest.file.limitType: integer. Default: (none)
The most rows to read across every file matched.
Set on the database or a connection.
kinetica.ingest.file.initial_clearType: boolean. Default:
falseEmpty the table before loading the file into it.
Set on the database or a connection.
Statement Results¶
These are read from a statement with get_option_int after it runs, since the
ADBC C API has no room for them on a call that also returns a reader.
kinetica.count_affectedType: integer.
Rows the last statement changed, or
-1if it was a query.kinetica.total_number_of_recordsType: integer.
Rows the last statement’s whole result holds, however many have been read so far, or
-1if it produced no result. A query bound to several rows of parameters runs once for each, and this adds up the runs made so far. Also read as the standard max-progress option.kinetica.key_lookupType: integer.
1if the last read was answered by the rank holding its row,0if it went through the SQL engine.
Compatibility¶
The driver needs Kinetica 7.2.3.24 or later, the first version to return query results as Arrow. A connection to an older server is refused when it opens, naming both versions.
This driver was tested on:
Kinetica
7.2.3.24.20261101191740