Skip to content

feat: Native support utf8view for regex string operators #15275

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

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

zhuqi-lucas
Copy link
Contributor

@zhuqi-lucas zhuqi-lucas commented Mar 17, 2025

Which issue does this PR close?

Rationale for this change

feat: Native support utf8view for binary operator

Because upstream arrow-rs already support utf8view for the remaining function for ut8view such as regex_match, details:

apache/arrow-rs#6717

What changes are included in this PR?

feat: Native support utf8view for binary operator

Because upstream arrow-rs already support utf8view for the remaining function for ut8view such as regex_match.

Are these changes tested?

Yes

Are there any user-facing changes?

feat: Native support utf8view for binary operator

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt) labels Mar 17, 2025
@alamb alamb changed the title feat: Native support utf8view for binary operator feat: Native support utf8view for regex string operators Mar 17, 2025
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.

Thanks @zhuqi-lucas 🙏

@@ -1177,26 +1177,6 @@ pub fn string_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option<DataT
}
}

/// This will be deprecated when binary operators native support
Copy link
Contributor

Choose a reason for hiding this comment

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

outstanding ❤️

@@ -1100,7 +1100,7 @@ EXPLAIN SELECT
FROM test;
----
logical_plan
01)Projection: CAST(test.column1_utf8view AS Utf8) LIKE Utf8("%an%") AS c1
01)Projection: test.column1_utf8view ~ Utf8View("an") AS c1
Copy link
Contributor

Choose a reason for hiding this comment

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

looks good

@alamb alamb merged commit 29874ba into apache:main Mar 18, 2025
29 checks passed
@alamb
Copy link
Contributor

alamb commented Mar 18, 2025

Thanks again @zhuqi-lucas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants