You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "abgros (via GitHub)" <gi...@apache.org> on 2026/04/07 16:15:39 UTC

[I] Unnecessary dependency on regex crate [arrow-rs]

abgros opened a new issue, #9672:
URL: https://github.com/apache/arrow-rs/issues/9672

   I noticed that this project has a transitive dependency on the regex crate via `arrow-string`. Apparently the purpose of this is to allow you to run queries on a string column to see whether they match a regex. I am not using this functionality, yet `regex` is unconditionally pulled, resulting in bloated compile times and build sizes. Please put this behind a (perhaps default) feature flag so we aren't unnecessarily pulling this heavy dependency.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unnecessary dependency on regex crate [arrow-rs]

Posted by "jhorstmann (via GitHub)" <gi...@apache.org>.
jhorstmann commented on issue #9672:
URL: https://github.com/apache/arrow-rs/issues/9672#issuecomment-4231850243

   Are you suggesting to split `arrow-string` into two separate crates, one with the sql `LIKE` and regular expression functions, and a separate one containing concat, length and substring functions?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unnecessary dependency on regex crate [arrow-rs]

Posted by "jhorstmann (via GitHub)" <gi...@apache.org>.
jhorstmann commented on issue #9672:
URL: https://github.com/apache/arrow-rs/issues/9672#issuecomment-4234714373

   Do you have a dependency on the `arrow` crate? That crate is basically just a wrapper around several other crates. If you depend on `arrow-array` and `parquet` directly and with the default features, then there shouldn't be a dependency on `regex`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unnecessary dependency on regex crate [arrow-rs]

Posted by "abgros (via GitHub)" <gi...@apache.org>.
abgros commented on issue #9672:
URL: https://github.com/apache/arrow-rs/issues/9672#issuecomment-4200527252

   Not sure what label to add here, since this isn't strictly a bug but rather poor practice...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unnecessary dependency on regex crate [arrow-rs]

Posted by "abgros (via GitHub)" <gi...@apache.org>.
abgros commented on issue #9672:
URL: https://github.com/apache/arrow-rs/issues/9672#issuecomment-4231940574

   @jhorstmann that seems like a good approach. My use case for this crate is limited to converting between Parquet files and other formats so I don't actually need anything at all besides the basic RecordBatch APIs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unnecessary dependency on regex crate [arrow-rs]

Posted by "abgros (via GitHub)" <gi...@apache.org>.
abgros commented on issue #9672:
URL: https://github.com/apache/arrow-rs/issues/9672#issuecomment-4283644879

   @jhorstmann yep, it turned out that I can depend on the subcrates directly. Thanks for the help.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Unnecessary dependency on regex crate [arrow-rs]

Posted by "abgros (via GitHub)" <gi...@apache.org>.
abgros closed issue #9672: Unnecessary dependency on regex crate
URL: https://github.com/apache/arrow-rs/issues/9672


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org