commit | 12346c753d0d235121cb81e3d5f02859c8ad59b0 | [log] [tgz] |
---|---|---|
author | Florian Müller <florian@tomueller.de> | Thu Apr 01 07:58:56 2021 -0400 |
committer | Andrew Lamb <andrew@nerdnetworks.org> | Thu Apr 01 07:58:56 2021 -0400 |
tree | fc15c08e69da76476081d543143003683a9173e3 | |
parent | b282d33f0cb81bed91d5b60592e169c79906f78e [diff] |
ARROW-10354: [Rust][DataFusion] regexp_extract function to select regex groups from strings Adds a regexp_extract compute kernel to select a substring based on a regular expression. Some things I did that I may be doing wrong: * I exposed `GenericStringBuilder` * I build the resulting Array using a builder - this looks quite different from e.g. the substring kernel. Should I change it accordingly, e.g. because of performance considerations? * In order to apply the new function in datafusion, I did not see a better solution than to handle the pattern string as `StringArray` and take the first record to compile the regex pattern from it and apply it to all values. Is there a way to define that an argument has to be a literal/scalar and cannot be filled by e.g. another column? I consider my current implementation quite error prone and would like to make this a bit more robust. Closes #9428 from sweb/ARROW-10354/regexp_extract Authored-by: Florian Müller <florian@tomueller.de> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
Apache Arrow is a development platform for in-memory analytics. It contains a set of technologies that enable big data systems to process and move data fast.
Major components of the project include:
Arrow is an Apache Software Foundation project. Learn more at arrow.apache.org.
The reference Arrow libraries contain many distinct software components:
The official Arrow libraries in this repository are in different stages of implementing the Arrow format and related features. See our current feature matrix on git master.
Please read our latest project contribution guide.
Even if you do not plan to contribute to Apache Arrow itself or Arrow integrations in other projects, we'd be happy to have you involved: