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

Implement native support StringView for REGEXP_LIKE #12897

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

tlm365
Copy link
Contributor

@tlm365 tlm365 commented Oct 12, 2024

Which issue does this PR close?

Closes #11910.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@tlm365 tlm365 force-pushed the regex-like-strview branch from fae6d88 to 899fb7f Compare October 12, 2024 17:00
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Oct 12, 2024
@tlm365 tlm365 marked this pull request as ready for review October 12, 2024 18:31
@findepi
Copy link
Member

findepi commented Oct 12, 2024

cc @alamb

@@ -727,7 +727,7 @@ EXPLAIN SELECT
FROM test;
----
logical_plan
01)Projection: regexp_like(CAST(test.column1_utf8view AS Utf8), Utf8("^https?://(?:www\.)?([^/]+)/.*$")) AS k
01)Projection: regexp_like(test.column1_utf8view, Utf8("^https?://(?:www\.)?([^/]+)/.*$")) AS k
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@Omega359
Copy link
Contributor

LGTM as well.

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.

Thank you @tlm365 and @findepi and @Omega359 for the reviews

TypeSignature::Exact(vec![LargeUtf8, LargeUtf8]),
TypeSignature::Exact(vec![Utf8View, Utf8, Utf8]),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think requiring the flags array to be StringArrray (aka only supporting Utf8 as the third argument) makes lots of sense

@alamb alamb merged commit 8d46fc1 into apache:main Oct 16, 2024
24 checks passed
@tlm365 tlm365 deleted the regex-like-strview branch November 10, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update REGEXP_LIKE scalar function to support Utf8View
4 participants