alamb commented on a change in pull request #1042:
URL: https://github.com/apache/arrow-rs/pull/1042#discussion_r768595313
##########
File path: arrow/src/compute/kernels/comparison.rs
##########
@@ -360,7 +360,11 @@ pub fn like_utf8_scalar<OffsetSize: StringOffsetSizeTrait>(
}
}
} else {
- let re_pattern = right.replace("%", ".*").replace("_", ".");
+ let re_pattern = right
+ .replace("%", ".*")
+ .replace("_", ".")
+ .replace("(", r#"\("#)
Review comment:
that is a great call @jwdeitch -- so something like
```rust
let re_pattern = escape(right)
.replace('%', '.*')
.replace('_', '.')?
```
Perhaps
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]