Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Expr Like to sql #9805

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Support Expr Like to sql #9805

merged 1 commit into from
Mar 27, 2024

Conversation

Weijun-H
Copy link
Member

Which issue does this PR close?

Closes #9726

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sql SQL Planner label Mar 26, 2024
@Weijun-H Weijun-H changed the title ExprLike to sql Expr Like to sql Mar 26, 2024
@alamb alamb changed the title Expr Like to sql Support Expr Like to sql Mar 27, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thank you @Weijun-H

@@ -683,6 +686,16 @@ mod tests {
ScalarUDF::new_from_impl(DummyUDF::new()).call(vec![col("a"), col("b")]),
r#"dummy_udf("a", "b")"#,
),
(
Expr::Like(Like {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to suggest using https://docs.rs/datafusion/latest/datafusion/logical_expr/enum.Expr.html#method.like but I think that doesn't allow setting esape_char. This looks good to me.

@alamb alamb merged commit 0b11d14 into apache:main Mar 27, 2024
25 checks passed
Lordworms pushed a commit to Lordworms/arrow-datafusion that referenced this pull request Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete support for Expr --> String
2 participants