Skip to content

Support StringView type in FTS indices #8245

Description

@wjones127

We already have code that it generic over Utf8 and LargeUtf8, so it should mostly be a matter to findings the places where we match on those and add cases for StringView.

Examples:

pub fn iter_str_array(arr: &dyn Array) -> Box<dyn Iterator<Item = Option<&str>> + Send + '_> {
match arr.data_type() {
DataType::Utf8 => Box::new(arr.as_string::<i32>().iter()),
DataType::LargeUtf8 => Box::new(arr.as_string::<i64>().iter()),
_ => panic!("Expecting Utf8 or LargeUtf8, found {:?}", arr.data_type()),
}
}

DataType::Utf8 | DataType::LargeUtf8 => {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-indexVector index, linalg, tokenizergood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions