lance-format/lance

Support `regexp_match` for `LargeUtf8`

Open

#904 opened on May 25, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (695 forks)github user discovery
A-pythongood first issuehelp wantedrust

Repository metrics

Stars
 (6,582 stars)
PR merge metrics
 (Avg merge 6d 1h) (219 merged PRs in 30d)

Description

#899 enabled regexp_match, but if we call with regexp_match(col, pattern) where col is of type LargeUtf8 the code panics.

a few notes:

  1. regexp_match on LargeUtf8 is probably highly inefficient, as the datasize practically doubles in memory (compare to Utf8)
  2. I'm not sure how to dispatch to arrow_cast function in datafusion expressions.

Contributor guide