Versioning and Compatibility#
The goal is to be ABI-compatible across releases. Hence, a few choices were made:
Most structures do not contain embedded fields or functions, but instead use free functions, making it easy to add new functions.
Enumerations are defined via
Of course, we can never add/remove/change struct members, and we can never change the signatures of existing functions.
The main point of concern is compatibility of
The driver entrypoint,
AdbcDriverInitFunc, is given a
version and a pointer to a table of function pointers to initialize.
The type of the table will depend on the version; when a new version
of ADBC is accepted, then a new table of function pointers will be
added. That way, the driver knows the type of the table. If/when we
add a new ADBC version, the following scenarios are possible:
An updated client application uses an old driver library. The client will pass a version field greater than what the driver recognizes, so the driver will return
ADBC_STATUS_NOT_IMPLEMENTEDand the client can decide whether to abort or retry with an older version.
An old client application uses an updated driver library. The client will pass a
versionlower than what the driver recognizes, so the driver can either error, or if it can still implement the old API contract, initialize the older table.
This approach does not let us change the signatures of existing functions, but we can add new functions and remove existing ones.
ADBC is versioned separately from the core Arrow project. The API standard and components (driver manager, drivers) are also versioned separately, but both follow semantic versioning.
For example: components may make backwards-compatible releases as 1.0.0, 1.0.1, 1.1.0, 1.2.0, etc. They may release backwards-incompatible versions such as 2.0.0, but which still implement the API standard version 1.0.0.
Similarly, this documentation describes the ADBC API standard version 1.0.0. If/when a compatible revision is made (e.g. new standard options are defined), the next version would be 1.1.0. If incompatible changes are made (e.g. new API functions), the next version would be 2.0.0.