Function duckdb_slice_vector

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

Slice a vector with a selection vector.

The max value in the selection vector must be less than the length of the vector

The resulting vector happens to be a dictionary vector.

@param vector The vector which is to become a dictionary @param selection The selection vector @param len The length of the selection vector