Expand description
Parse WITH (primary='vector', ...) options for CREATE COLLECTION DDL.
This module is concerned only with extracting and validating the
vector-primary options from the raw SQL string. Column-level validation
(e.g. that vector_field names an actual VECTOR(n) column) happens
at the DDL execution layer where the column list is available.
Functions§
- parse_
vector_ primary_ options - Parse vector-primary options from raw CREATE COLLECTION SQL.
- parse_
vector_ primary_ options_ from_ kvs - Parse vector-primary options from pre-extracted
(key, value)pairs. - validate_
payload_ indexes - Validate that each
payload_indexesfield exists, is not a VECTOR/BLOB/BYTES type, and is bitmap-eligible (text/int/bool/timestamp). Also infers the per-fieldPayloadIndexKindfrom the column type — numeric / timestamp →Range(sorted BTreeMap), bool →Boolean, everything else →Equality. Mutatescfg.payload_indexesto attach the inferred kinds. - validate_
vector_ field - Validate that
vector_fieldnames aVECTOR(n)column in the provided column list. Call this after the column list is available.