Skip to content

Commit 0915c51

Browse files
authored
chore: add a warning log that recommends using regexp_like (#5030)
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
1 parent 89e84c8 commit 0915c51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/lance-datafusion/src/logical_expr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ pub fn coerce_filter_type_to_boolean(expr: Expr) -> Expr {
201201
match expr {
202202
// Coerce regexp_match to boolean by checking for non-null
203203
Expr::ScalarFunction(sf) if sf.func.name() == "regexp_match" => {
204+
log::warn!("regexp_match now is coerced to boolean, this may be changed in the future, please use `regexp_like` instead");
204205
Expr::IsNotNull(Box::new(Expr::ScalarFunction(sf)))
205206
}
206207

0 commit comments

Comments
 (0)