duckdb_slice_vector

Function duckdb_slice_vector 

Source
pub unsafe extern "C" fn duckdb_slice_vector(
    vector: duckdb_vector,
    sel: duckdb_selection_vector,
    len: idx_t,
)
Expand description

Slice a vector with a selection vector. The length of the selection vector must be less than or equal to the length of the vector. Turns the vector into a dictionary vector.

@param vector The vector to slice. @param sel The selection vector. @param len The length of the selection vector.