Expand description
Relation-aware cuVS SQL planning and execution contracts.
The adapter owns SQL recognition, static validation, logical/physical
planning, and stable registry projections. Typed vector IR and device
execution remain DataFusion-independent in query-engine.
Structs§
- Cuvs
Extension Planner - DataFusion physical extension planner for validated cuVS logical nodes.
- Cuvs
Logical Node - DataFusion logical extension for a statically validated cuVS relation call.
- Cuvs
Operation Descriptor - One operation entry drives SQL names, relation shape, option metadata, and output-schema selection. Keep operation-specific facts in this registry.
- Cuvs
Relation Planner - DataFusion SQL relation planner that binds named cuVS function arguments.
- Cuvs
Validated Options - Options of one cuVS call, validated and parsed once. The canonical JSON is the call’s identity and serialized form; validation and lowering read the typed parameters.
- Cuvs
Vector Relation Binding - Validated columns bound to one named relation role in a cuVS SQL call.
- GpuOption
Definition - One declared option of a GPU table function: its JSON key, whether a call may omit it, and the value contract that validation and schema generation share.
- GpuOption
Validation Error - Rejection of a GPU function’s option object.
codeis a stable error identifier read by the adapter’s error mapping;messagenames the function family and is for people.
Enums§
- Cuvs
Operation - Operation identity used by native IR and the SQL adapter.
- Cuvs
Output Contract - Stable relational output contract selected by an operation descriptor.
- Cuvs
Relation Role - SQL relation argument roles in the canonical operation registry.
- Dense
Vector Binding - Binding from one native relation to a dense vector matrix.
- GpuOption
Kind - Canonical scalar option metadata used by JSON schema generation and value validation in the DataFusion adapter.
- Relation
IdType - Scalar ID types accepted by dense relational operations.
- Vector
Algorithm Params - Algorithm-specific vector parameter payload.
- Vector
Element Type - Vector element types for dense relation descriptors.
Constants§
- CUVS_
BRUTE_ FORCE_ KNN_ FUNCTION - Public SQL names for the query-local cuVS operations.
- CUVS_
CAGRA_ FUNCTION - Canonical SQL function name for CAGRA nearest-neighbor search.
- CUVS_
IVF_ FLAT_ FUNCTION - Canonical SQL function name for IVF-Flat nearest-neighbor search.
- CUVS_
IVF_ PQ_ FUNCTION - Canonical SQL function name for IVF-PQ nearest-neighbor search.
- CUVS_
KMEANS_ FUNCTION - Canonical SQL function name for KMeans fit and assignment.
- CUVS_
OPERATION_ REGISTRY - Supported cuVS operations in their canonical catalog order.
- CUVS_
PAIRWISE_ DISTANCE_ FUNCTION - Canonical SQL function name for pairwise dense-vector distances.
- CUVS_
PCA_ FUNCTION - Canonical SQL function name for PCA fit-transform.
- CUVS_
TOP_ K_ FUNCTION - Canonical SQL function name for selection of values within each vector.
- RELATION_
ID_ TYPES - Stable order used in generated descriptions and validation diagnostics.
Functions§
- canonicalize_
cuvs_ options - Validate and canonicalize the scalar portion of an options JSON object. Relation binding field names/types are checked by the SQL adapter against its child schema, but presence and object shape are enforced here.
- cuvs_
options_ json_ schema - Generate the frozen options schema from the canonical operation descriptor.
- cuvs_
relation_ planner - Creates a shared cuVS relation planner for installation on a session builder.
Type Aliases§
- Cuvs
Algo Exec - Physical execution wrapper for one cuVS call with validated input relations.